diff options
author | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:58:59 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:58:59 +0200 |
commit | c078024019d334eb96fbfaf922c64297c9a0c6e0 (patch) | |
tree | b6b864da000d1f5bf70f04edc027c693bcb02e04 /nx-X11/programs/Xserver/hw/nxagent/Handlers.c | |
parent | d30ef0340e759378964b75e8143625ecaea245b0 (diff) | |
download | nx-libs-c078024019d334eb96fbfaf922c64297c9a0c6e0.tar.gz nx-libs-c078024019d334eb96fbfaf922c64297c9a0c6e0.tar.bz2 nx-libs-c078024019d334eb96fbfaf922c64297c9a0c6e0.zip |
Imported nxagent-3.4.0-5.tar.gznxagent/3.4.0-5
Summary: Imported nxagent-3.4.0-5.tar.gz
Keywords:
Imported nxagent-3.4.0-5.tar.gz
into Git repository
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Handlers.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Handlers.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Handlers.c b/nx-X11/programs/Xserver/hw/nxagent/Handlers.c index e43fbb931..be407f160 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Handlers.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Handlers.c @@ -1,6 +1,6 @@ /**************************************************************************/ /* */ -/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ +/* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */ /* */ /* NXAGENT, NX protocol compression and NX extensions to this software */ /* are copyright of NoMachine. Redistribution and use of the present */ @@ -527,7 +527,8 @@ void nxagentBlockHandler(pointer data, struct timeval **timeout, pointer mask) synchronize, nxagentReady); #endif - if (nxagentQueuedEvents(nxagentDisplay) > 0) + if (NXDisplayError(nxagentDisplay) == 0 && + nxagentQueuedEvents(nxagentDisplay) > 0) { #ifdef WARNING fprintf(stderr, "nxagentBlockHandler: WARNING! Forcing a null timeout with events queued.\n"); |