From 2b27a5d4dc8e9dfde6fd9feeb86d3923e2d07cc8 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 15 Apr 2010 00:40:25 -0400 Subject: [PATCH] Try to recover from erroneous XML packets. --- Source/DebuggerConnection.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/DebuggerConnection.m b/Source/DebuggerConnection.m index f628079..d37eb76 100644 --- a/Source/DebuggerConnection.m +++ b/Source/DebuggerConnection.m @@ -546,12 +546,16 @@ void SocketAcceptCallback(CFSocketRef socket, if ([transaction length]) { lastReadTransaction_ = [transaction intValue]; + if (xmlTest) + [self handleResponse:[xmlTest autorelease]]; return; } } // Otherwise, assume +1 and hope it works. ++lastReadTransaction_; + if (xmlTest) + [self handleResponse:[xmlTest autorelease]]; return; } else @@ -594,6 +598,7 @@ void SocketAcceptCallback(CFSocketRef socket, [self performSend:command]; else [queuedWrites_ addObject:command]; + [self sendQueuedWrites]; } /** -- 2.43.5