aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nx-X11/lib/src/XlibInt.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/nx-X11/lib/src/XlibInt.c b/nx-X11/lib/src/XlibInt.c
index 88698daa3..36e650193 100644
--- a/nx-X11/lib/src/XlibInt.c
+++ b/nx-X11/lib/src/XlibInt.c
@@ -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