SSH.koplugin: fix cant stop SSH server bug when pid file's stale (#10300)

Fixes #9812.
This commit is contained in:
weijiuqiao
2023-04-05 14:39:56 +08:00
committed by GitHub
parent 483a005cc2
commit 86ddfc856d

View File

@@ -95,6 +95,10 @@ function SSH:stop()
timeout = 2,
})
if self:isRunning() then
os.remove("/tmp/dropbear_koreader.pid")
end
-- Plug the hole in the Kindle's firewall
if Device:isKindle() then
os.execute(string.format("%s %s %s",