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#211Signed-off-by: Daniel Llewellyn's avatarDaniel Llewellyn <diddledan@ubuntu.com>
parent b6a5389e
Pipeline #103003 passed with stages
in 7 minutes
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment