Handle RDP recv queue even in RDP send queue is full.

Patch from James Cameron <james.cameron@hp.com>
This closes Debian Bug #246461.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@886 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Michael Gernoth 2005-04-16 11:57:19 +00:00
parent 87d8eefba0
commit 0929decadd

5
xwin.c
View File

@ -1341,7 +1341,7 @@ xwin_toggle_fullscreen(void)
} }
} }
/* Process all events in Xlib queue /* Process events in Xlib queue
Returns 0 after user quit, 1 otherwise */ Returns 0 after user quit, 1 otherwise */
static int static int
xwin_process_events(void) xwin_process_events(void)
@ -1353,8 +1353,9 @@ xwin_process_events(void)
key_translation tr; key_translation tr;
char str[256]; char str[256];
Status status; Status status;
int events = 0;
while (XPending(g_display) > 0) while ((XPending(g_display) > 0) && events++ < 20)
{ {
XNextEvent(g_display, &xevent); XNextEvent(g_display, &xevent);