mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 05:37:43 +00:00
fix: now call stop()
of sftp server will do nothing when sshd hasn't been initialized
This commit is contained in:
parent
7686e012c3
commit
7d28c52c35
@ -147,6 +147,8 @@ internal class SimpleSftpServer {
|
||||
}
|
||||
|
||||
fun stop() {
|
||||
if (!::sshd.isInitialized) return
|
||||
|
||||
try {
|
||||
sshd.stop(true)
|
||||
} catch (e: Exception) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user