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