diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPSSHTunnel.m | 4 |
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; |