Permalink
Browse files

This change will either reduce the amount of crashes or increase the …

…amount of beachballing. In the latter case please file an issue.
  • Loading branch information...
dmoagx committed Oct 17, 2015
1 parent 73e5d92 commit 4d97cbd4df1ebb451d89d6c4e12dd7c622d00b84
@@ -186,6 +186,9 @@ - (BOOL)_pingConnectionUsingLoopDelay:(NSUInteger)loopDelay
keepAliveLastPingBlocked = YES;
}
} while (keepAlivePingThreadActive);
//wait for thread to go away, otherwise our free() below might run before _pingThreadCleanup()
pthread_join(keepAlivePingThread_t, NULL);
// Clean up
keepAlivePingThread_t = NULL;

0 comments on commit 4d97cbd

Please sign in to comment.