aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libs/ssh/sshconnection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/ssh/sshconnection.cpp b/src/libs/ssh/sshconnection.cpp
index 6dd2e49f9d..17108b91cc 100644
--- a/src/libs/ssh/sshconnection.cpp
+++ b/src/libs/ssh/sshconnection.cpp
@@ -169,7 +169,8 @@ SshConnection::SshConnection(const SshConnectionParameters &serverInfo, QObject
if (!QFileInfo::exists(d->socketFilePath()))
return;
d->socketWatcher->disconnect();
- d->socketWatcher->removeDirectory(QFileInfo(d->socketFilePath()).path());
+ d->socketWatcher->deleteLater();
+ d->socketWatcher = nullptr;
d->socketWatcherTimer.disconnect();
d->socketWatcherTimer.stop();
emitConnected();