From 98f5d5bc4059ed41e573dba94f12f158519a60a3 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 10 Oct 2015 10:32:13 -0400 Subject: [PATCH] Short-circuit -[MessageQueue disconnectClient] if not connected. --- Source/MessageQueue.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/MessageQueue.m b/Source/MessageQueue.m index 9860e68..c67a5f8 100644 --- a/Source/MessageQueue.m +++ b/Source/MessageQueue.m @@ -158,6 +158,9 @@ // Closes down the listening socket, the child socket, and the streams. - (void)disconnectClient { + if (!_connected) + return; + if (_readSource) { dispatch_source_cancel(_readSource); dispatch_release(_readSource); -- 2.22.5