From 829ced7d0baeff24689b06f896e3a25e6c231996 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 18 Jun 2013 19:45:54 -0400 Subject: [PATCH] Attempt to send after successfully reading a message. --- Source/MessageQueue.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/MessageQueue.m b/Source/MessageQueue.m index 986eb07..731fca6 100644 --- a/Source/MessageQueue.m +++ b/Source/MessageQueue.m @@ -319,6 +319,9 @@ static void MessageQueueWriteEvent(CFWriteStreamRef stream, if (_messageSize >= _totalMessageSize) { [_delegate didReceiveMessage:[_message autorelease]]; _message = nil; + + // Process any outgoing messages. + [self dequeueAndSend]; } } } -- 2.43.5