Commit 633f4617 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

XlibInt: check for XlibError before accessing other dpy fields

This fixes an assertion being triggered on reconnect: assertion=assertion@entry=0x7f2f0bba6510 "(dpy->flags & XlibDisplayPrivSync) != 0", file=file@entry=0x7f2f0bba62fc "XlibInt.c", line=line@entry=895,
parent a61b1a72
......@@ -892,6 +892,16 @@ void _XSeqSyncFunction(
static int
_XPrivSyncFunction (Display *dpy)
{
#ifdef NX_TRANS_SOCKET
if (dpy->flags & XlibDisplayIOError)
{
#ifdef NX_TRANS_DEBUG
fprintf(stderr, "%s: Returning 0 with I/O error detected.\n", __func__);
#endif
return 0;
}
#endif /* NX_TRANS_SOCKET */
#ifdef XTHREADS
assert(!dpy->lock_fns);
#endif
......
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