mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
Fix pidfile access
This commit is contained in:
parent
b907d76bba
commit
e8f7f5cece
1 changed files with 2 additions and 1 deletions
|
@ -88,7 +88,8 @@ class PosixProcess:
|
||||||
if not self.lasterror:
|
if not self.lasterror:
|
||||||
if self.lock_socket:
|
if self.lock_socket:
|
||||||
self.lock_socket.close()
|
self.lock_socket.close()
|
||||||
self.pidpath.unlink(missing_ok=True)
|
if self.pidpath.is_file():
|
||||||
|
self.pidpath.unlink()
|
||||||
|
|
||||||
|
|
||||||
ProcessType = typing.Type[typing.Union[PosixProcess, WindowsProcess]]
|
ProcessType = typing.Type[typing.Union[PosixProcess, WindowsProcess]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue