mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
SSH.koplugin: fix cant stop SSH server bug when pid file's stale (#10300)
Fixes #9812.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user