Fixes hang after a auto-update is performed

This commit is contained in:
echel0n 2014-04-12 09:54:41 -07:00
commit 95147cf7ec

View file

@ -223,6 +223,7 @@ def restart():
popen_list += SYS_ARGV popen_list += SYS_ARGV
logger.log(u"Restarting nzbToMedia with " + str(popen_list)) logger.log(u"Restarting nzbToMedia with " + str(popen_list))
logger.close() logger.close()
subprocess.Popen(popen_list, cwd=os.getcwd(), shell=True) p = subprocess.Popen(popen_list, cwd=os.getcwd())
p.wait()
os._exit(0) os._exit(0)