2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

fix: now call stop() of sftp server will do nothing when sshd hasn't been initialized

This commit is contained in:
ShellWen Chen
2024-07-21 10:21:48 +08:00
committed by Albert Vaca Cintora
parent 7686e012c3
commit 7d28c52c35

View File

@@ -147,6 +147,8 @@ internal class SimpleSftpServer {
}
fun stop() {
if (!::sshd.isInitialized) return
try {
sshd.stop(true)
} catch (e: Exception) {