mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
exit with correct code following update. Needed to show successfull PP in NZBGet.
This commit is contained in:
parent
00ca156564
commit
dd9d04cb52
1 changed files with 3 additions and 1 deletions
|
@ -339,6 +339,7 @@ def initialize(section=None):
|
||||||
def restart():
|
def restart():
|
||||||
install_type = versionCheck.CheckVersion().install_type
|
install_type = versionCheck.CheckVersion().install_type
|
||||||
|
|
||||||
|
status = 0
|
||||||
popen_list = []
|
popen_list = []
|
||||||
|
|
||||||
if install_type in ('git', 'source'):
|
if install_type in ('git', 'source'):
|
||||||
|
@ -350,5 +351,6 @@ def restart():
|
||||||
logger.close()
|
logger.close()
|
||||||
p = subprocess.Popen(popen_list, cwd=os.getcwd())
|
p = subprocess.Popen(popen_list, cwd=os.getcwd())
|
||||||
p.wait()
|
p.wait()
|
||||||
|
status = p.returncode
|
||||||
|
|
||||||
os._exit(0)
|
os._exit(status)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue