Check daemon status in singleinstance instead of config

This commit is contained in:
Dmitri Bogomolov 2017-09-28 18:10:03 +03:00
parent c9851b9f41
commit 1b921a718c
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ from multiprocessing import current_process
from threading import current_thread, enumerate from threading import current_thread, enumerate
import traceback import traceback
from bmconfigparser import BMConfigParser import shared
from debug import logger from debug import logger
import queues import queues
import shutdown import shutdown
@ -54,7 +54,7 @@ def signal_handler(signal, frame):
if current_thread().name not in ("PyBitmessage", "MainThread"): if current_thread().name not in ("PyBitmessage", "MainThread"):
return return
logger.error("Got signal %i", signal) logger.error("Got signal %i", signal)
if BMConfigParser().safeGetBoolean('bitmessagesettings', 'daemon'): if shared.thisapp.daemon:
shutdown.doCleanShutdown() shutdown.doCleanShutdown()
else: else:
allThreadTraceback(frame) allThreadTraceback(frame)