https://src.bluestatic.org
/
macgdbp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cfe872
)
Short-circuit -[MessageQueue disconnectClient] if not connected.
author
Robert Sesek <rsesek@bluestatic.org>
Sat, 10 Oct 2015 14:32:13 +0000
(10:32 -0400)
committer
Robert Sesek <rsesek@bluestatic.org>
Sat, 10 Oct 2015 17:15:44 +0000
(13:15 -0400)
Source/MessageQueue.m
patch
|
blob
|
history
diff --git
a/Source/MessageQueue.m
b/Source/MessageQueue.m
index 9860e68fd75f667d7ecded898a6157dfe115c4fb..c67a5f85f16011b201a6d3ea0ed63edc24c7eb19 100644
(file)
--- 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);