Skip to content

Commit

Permalink
Merge pull request #3 from fenrir-zeoalliance/fenrir/ABM-340
Browse files Browse the repository at this point in the history
ABM-340: Crash while using app
Remove dispatch_sync call on the same queue from dealloc in order to avoid deadlock.
  • Loading branch information
Colobalex132 authored May 24, 2018
2 parents 439d84e + af1d1e7 commit b26c7f2
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 @@ -695,9 +695,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 b26c7f2

Please sign in to comment.