Skip to content


Browse files Browse the repository at this point in the history
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 4d97cbd
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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;
Expand Down

0 comments on commit 4d97cbd

Please sign in to comment.