Short-circuit -[MessageQueue disconnectClient] if not connected.
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 10 Oct 2015 14:32:13 +0000 (10:32 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 10 Oct 2015 17:15:44 +0000 (13:15 -0400)
Source/MessageQueue.m

index 9860e68fd75f667d7ecded898a6157dfe115c4fb..c67a5f85f16011b201a6d3ea0ed63edc24c7eb19 100644 (file)
 
 // 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);