mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-08 09:08:18 +02:00
os: Ignore dying client in ResetCurrentRequest
You might as well, it's harmless. Better, some cleanup code (like DRI2
swap wait) needs to run both normally and at client exit, so it
simplifies the callers to not need to check first. See 4308f5d3 for a
similar example.
Props: @ajax (Adam Jackson)
Fixes: xorg/xserver#211
Signed-off-by: Daniel Llewellyn <diddledan@ubuntu.com>
This commit is contained in:
parent
b6a5389e17
commit
578371616e
1 changed files with 5 additions and 0 deletions
5
os/io.c
5
os/io.c
|
|
@ -557,6 +557,11 @@ void
|
|||
ResetCurrentRequest(ClientPtr client)
|
||||
{
|
||||
OsCommPtr oc = (OsCommPtr) client->osPrivate;
|
||||
|
||||
/* ignore dying clients */
|
||||
if (!oc)
|
||||
return;
|
||||
|
||||
register ConnectionInputPtr oci = oc->input;
|
||||
register xReq *request;
|
||||
int gotnow, needed;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue