diff options
-rw-r--r-- | Source/SPDatabaseDocument.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index c282b219..c26bce66 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -4212,7 +4212,7 @@ object:nil]; - [[SPNavigatorController sharedNavigatorController] removeConnection:[self connectionID]]; + [[SPNavigatorController sharedNavigatorController] performSelectorOnMainThread:@selector(removeConnection:) withObject:[self connectionID] waitUntilDone:YES]; [mySQLConnection setDelegate:nil]; if (_isConnected) [self closeConnection]; |