From 2e69aacd95a1991c73e59f71a3f3809e64eb3fe3 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 12 Aug 2010 11:13:57 +0000 Subject: =?UTF-8?q?=E2=80=A2=C2=A0while=20closing=20a=20doc=20window=20or?= =?UTF-8?q?=20quitting=20the=20app=20wait=20for=20removing=20the=20connect?= =?UTF-8?q?ion=20structure=20data=20used=20by=20the=20Navigator/Completion?= =?UTF-8?q?=20List=20to=20avoid=20exceptions=20or=20crashes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPDatabaseDocument.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPDatabaseDocument.m') 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]; -- cgit v1.2.3