From 9c2a0f70ce39c72deca3457801efbef76c4f2efc Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 31 May 2010 19:06:26 -0400 Subject: [PATCH] Don't |-send:| if the transactions do not match --- Source/DebuggerConnection.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/DebuggerConnection.m b/Source/DebuggerConnection.m index f971ce3..3ab0f44 100644 --- a/Source/DebuggerConnection.m +++ b/Source/DebuggerConnection.m @@ -607,7 +607,7 @@ void SocketAcceptCallback(CFSocketRef socket, */ - (void)send:(NSString*)command { - if (CFWriteStreamCanAcceptBytes(writeStream_)) + if (lastReadTransaction_ >= lastWrittenTransaction_ && CFWriteStreamCanAcceptBytes(writeStream_)) [self performSend:command]; else [queuedWrites_ addObject:command]; -- 2.43.5