We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 97594c4 + 6f46421 commit 093f4b3Copy full SHA for 093f4b3
GCD/GCDAsyncSocket.m
@@ -2579,7 +2579,18 @@ - (void)closeWithError:(NSError *)error
2579
2580
accept6Source = NULL;
2581
}
2582
-
+ if (!readSource && !writeSource) {
2583
+ LogVerbose(@"manually closing close");
2584
+
2585
+ if (socket4FD) {
2586
+ close(socket4FD);
2587
+ }
2588
2589
+ if (socket6FD) {
2590
+ close(socket6FD);
2591
2592
2593
2594
if (readSource)
2595
{
2596
LogVerbose(@"dispatch_source_cancel(readSource)");
0 commit comments