From 9231b642e8d4d4a69b10fd71d727fcc6a35aca2b Mon Sep 17 00:00:00 2001 From: Erik Forsberg Date: Thu, 19 Jun 2003 11:46:30 +0000 Subject: [PATCH] Detection of unclean disconnect turned out not to work on W2K3 Server. Doh! git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@425 423420c4-83ab-492f-b58f-81f9feb106b5 --- rdp.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rdp.c b/rdp.c index 314f781..5a83c3e 100644 --- a/rdp.c +++ b/rdp.c @@ -865,7 +865,12 @@ rdp_main_loop(void) case RDP_PDU_DEACTIVATE: DEBUG(("RDP_PDU_DEACTIVATE\n")); - return True; + /* We thought we could detect a clean + shutdown of the session by this + packet, but it seems Windows 2003 + is sending us one of these when we + reconnect to a disconnected session + return True; */ break; case RDP_PDU_DATA: @@ -879,7 +884,10 @@ rdp_main_loop(void) unimpl("PDU %d\n", type); } } - return False; + return True; + /* We want to detect if we got a clean shutdown, but we + can't. Se above. + return False; */ } /* Establish a connection up to the RDP layer */