Skip to content

Commit

Permalink
Remove dispatch_sync call on the same queue from dealloc in order to …
Browse files Browse the repository at this point in the history
…avoid deadlock

See: clario-tech#3
  • Loading branch information
MCurran16 committed Feb 5, 2021
1 parent d927b69 commit b571393
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions PocketSocket/PSWebSocketServer.m
Original file line number Diff line number Diff line change
Expand Up @@ -681,9 +681,7 @@ - (void)executeDelegateAndWait:(void (^)(void))work {
#pragma mark - Dealloc

- (void)dealloc {
[self executeWorkAndWait:^{
[self disconnect:YES];
}];
[self disconnect:YES];
}

@end
Expand Down

0 comments on commit b571393

Please sign in to comment.