diff --git a/src/org/kde/kdeconnect/Plugins/SftpPlugin/SimpleSftpServer.kt b/src/org/kde/kdeconnect/Plugins/SftpPlugin/SimpleSftpServer.kt index 4b558fd7..8827f36c 100644 --- a/src/org/kde/kdeconnect/Plugins/SftpPlugin/SimpleSftpServer.kt +++ b/src/org/kde/kdeconnect/Plugins/SftpPlugin/SimpleSftpServer.kt @@ -147,6 +147,8 @@ internal class SimpleSftpServer { } fun stop() { + if (!::sshd.isInitialized) return + try { sshd.stop(true) } catch (e: Exception) {