aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionDelegate.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-01-27 01:04:03 +0000
committerrowanbeentje <rowan@beent.je>2010-01-27 01:04:03 +0000
commitb36564545f2290e7e41a794c33783e6ce322bbcc (patch)
tree34dae44e3fd56b88154e8411e0b43407b0c7fb76 /Source/SPConnectionDelegate.m
parent9987c0cb9440fea045d56ece1dd8cdd0828c9820 (diff)
downloadsequelpro-b36564545f2290e7e41a794c33783e6ce322bbcc.tar.gz
sequelpro-b36564545f2290e7e41a794c33783e6ce322bbcc.tar.bz2
sequelpro-b36564545f2290e7e41a794c33783e6ce322bbcc.zip
- Fix SSH threads (and connections) which were never cleaned up or closed, probably as a result of r1709
- Improve SSH and object cleanup, especially for cases where the connection drops, to ensure the connection proxy is cleaned up and all memory released
Diffstat (limited to 'Source/SPConnectionDelegate.m')
-rw-r--r--Source/SPConnectionDelegate.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPConnectionDelegate.m b/Source/SPConnectionDelegate.m
index ff0cca23..fea894b6 100644
--- a/Source/SPConnectionDelegate.m
+++ b/Source/SPConnectionDelegate.m
@@ -118,7 +118,7 @@
// If 'disconnect' was selected, trigger a window close.
if (connectionErrorCode == MCPConnectionCheckDisconnect) {
- [self performSelectorOnMainThread:@selector(closeConnection) withObject:nil waitUntilDone:YES];
+ [self performSelectorOnMainThread:@selector(closeDocumentWindowAndDisconnect:) withObject:nil waitUntilDone:YES];
}
return connectionErrorCode;
@@ -130,7 +130,7 @@
* everything up before it's all deallocated as a result of the close.
* Also sets alpha to fully transparent so accidental dialogs are hidden!
*/
-- (void) closeConnection
+- (void) closeDocumentWindowAndDisconnect
{
_isConnected = NO;
[self windowWillClose:nil];