No more shared.daemon variable #1095
|
@ -220,8 +220,6 @@ class Main:
|
|||
elif opt in ("-c", "--curses"):
|
||||
state.curses = True
|
||||
|
||||
shared.daemon = daemon
|
||||
|
||||
# is the application already running? If yes then exit.
|
||||
shared.thisapp = singleinstance("", daemon)
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ class singleCleaner(threading.Thread, StoppableThread):
|
|||
if "Errno 28" in str(err):
|
||||
logger.fatal('(while receiveDataThread knownnodes.needToWriteKnownNodesToDisk) Alert: Your disk or data storage volume is full. ')
|
||||
queues.UISignalQueue.put(('alert', (tr._translate("MainWindow", "Disk full"), tr._translate("MainWindow", 'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'), True)))
|
||||
if shared.daemon:
|
||||
if shared.thisapp.daemon:
|
||||
os._exit(0)
|
||||
shared.needToWriteKnownNodesToDisk = False
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ clientHasReceivedIncomingConnections = False #used by API command clientStatus
|
|||
numberOfMessagesProcessed = 0
|
||||
numberOfBroadcastsProcessed = 0
|
||||
numberOfPubkeysProcessed = 0
|
||||
daemon = False
|
||||
|
||||
needToWriteKnownNodesToDisk = False # If True, the singleCleaner will write it to disk eventually.
|
||||
maximumLengthOfTimeToBotherResendingMessages = 0
|
||||
timeOffsetWrongCount = 0
|
||||
|
|
Reference in New Issue
Block a user