Skip to content

Commit

Permalink
Dismiss dialog on main thread instead of background thread
Browse files Browse the repository at this point in the history
  • Loading branch information
emsquared committed Jul 9, 2021
1 parent 8a76e9d commit d84a5ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/App/Classes/IRC/IRCConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,9 @@ - (void)ircConnectionDidDisconnectWithError:(nullable NSError *)disconnectError

- (void)_ircConnectionDidDisconnectWithError:(nullable NSError *)disconnectError
{
[self closeInsecureCertificateTrustPanel];

XRPerformBlockSynchronouslyOnMainQueue(^{
[self closeInsecureCertificateTrustPanel];

[self.client ircConnection:self didDisconnectWithError:disconnectError];
});
}
Expand Down

0 comments on commit d84a5ce

Please sign in to comment.