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

Fixes #9812.
reviewable/pr10223/r5^2
weijiuqiao 1 year ago committed by GitHub
parent 483a005cc2
commit 86ddfc856d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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",

Loading…
Cancel
Save