aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-04-28 23:46:27 +0000
committerrowanbeentje <rowan@beent.je>2010-04-28 23:46:27 +0000
commit57eaf99dc126edfff911882b6e1aee5eac0755ea (patch)
tree2612151e3ab82422c63751deb553c441abfe7b23 /Source
parentbc4c01b1c4729e3be448503e6ad2f6799834abca (diff)
downloadsequelpro-57eaf99dc126edfff911882b6e1aee5eac0755ea.tar.gz
sequelpro-57eaf99dc126edfff911882b6e1aee5eac0755ea.tar.bz2
sequelpro-57eaf99dc126edfff911882b6e1aee5eac0755ea.zip
- Fix CFRunLoopWakeUp crashes seen on 10.5.8 with SSH connections by running the run loop after disconnection to flush calls
Diffstat (limited to 'Source')
-rw-r--r--Source/SPSSHTunnel.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/SPSSHTunnel.m b/Source/SPSSHTunnel.m
index eeef83d2..2b7c31fb 100644
--- a/Source/SPSSHTunnel.m
+++ b/Source/SPSSHTunnel.m
@@ -352,6 +352,10 @@
[[NSNotificationCenter defaultCenter] removeObserver:self
name:@"NSFileHandleDataAvailableNotification"
object:nil];
+
+ // Run the run loop for a short time to ensure all task/pipe callbacks are dealt with
+ [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:1.0]];
+
[task release], task = nil;
[standardError release], standardError = nil;
[taskEnvironment release], taskEnvironment = nil;