|
@ -1703,7 +1703,11 @@ def main(): |
|
|
sys.stdout.flush() |
|
|
sys.stdout.flush() |
|
|
sabnzbd.pid_file() |
|
|
sabnzbd.pid_file() |
|
|
if getattr(sys, 'frozen', None) == 'macosx_app': |
|
|
if getattr(sys, 'frozen', None) == 'macosx_app': |
|
|
|
|
|
try: |
|
|
AppHelper.stopEventLoop() |
|
|
AppHelper.stopEventLoop() |
|
|
|
|
|
except: |
|
|
|
|
|
# Failing AppHelper libary! |
|
|
|
|
|
os._exit(0) |
|
|
else: |
|
|
else: |
|
|
growler.send_notification('SABnzbd',T('SABnzbd shutdown finished'), 'startup') |
|
|
growler.send_notification('SABnzbd',T('SABnzbd shutdown finished'), 'startup') |
|
|
os._exit(0) |
|
|
os._exit(0) |
|
|