mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-20 16:43:43 +00:00
Fix for restart spawning more then one process of SickRage
This commit is contained in:
parent
42b621103f
commit
6fc93be7b5
1 changed files with 5 additions and 4 deletions
|
@ -1326,11 +1326,12 @@ def saveAndShutdown(restart=False):
|
|||
popen_list += ['--nolaunch']
|
||||
logger.log(u"Restarting SickRage with " + str(popen_list))
|
||||
logger.close()
|
||||
p = subprocess.Popen(popen_list, cwd=os.getcwd())
|
||||
p.wait()
|
||||
status = p.returncode
|
||||
subprocess.Popen(popen_list, cwd=os.getcwd())
|
||||
time.sleep(5)
|
||||
|
||||
os._exit(status)
|
||||
logger.log(u"SickRage successfully restarted ...")
|
||||
|
||||
os._exit(0)
|
||||
|
||||
|
||||
def invoke_command(to_call, *args, **kwargs):
|
||||
|
|
Loading…
Reference in a new issue