--- sourceforge.net/trunk/rdesktop/tcp.c 2002/09/26 14:26:46 207 +++ sourceforge.net/trunk/rdesktop/tcp.c 2002/11/19 14:48:02 275 @@ -84,7 +84,9 @@ while (length > 0) { - ui_select(sock); + if (!ui_select(sock)) + /* User quit */ + return NULL; rcvd = recv(sock, in.end, length, 0); if (rcvd == -1)