further deamon-related changes

This commit is contained in:
Jonathan Warren 2013-05-02 16:55:13 -04:00
parent da4cf1f1cb
commit b8f44aadb4

View File

@ -3851,10 +3851,6 @@ if __name__ == "__main__":
singleCleanerThread.daemon = True # close the main program even if there are threads left singleCleanerThread.daemon = True # close the main program even if there are threads left
singleCleanerThread.start() singleCleanerThread.start()
singleListenerThread = singleListener()
singleListenerThread.daemon = True # close the main program even if there are threads left
singleListenerThread.start()
shared.reloadMyAddressHashes() shared.reloadMyAddressHashes()
shared.reloadBroadcastSendersForWhichImWatching() shared.reloadBroadcastSendersForWhichImWatching()
@ -3888,6 +3884,10 @@ if __name__ == "__main__":
connectToStream(1) connectToStream(1)
singleListenerThread = singleListener()
singleListenerThread.daemon = True # close the main program even if there are threads left
singleListenerThread.start()
if not shared.safeConfigGetBoolean('bitmessagesettings','daemon'): if not shared.safeConfigGetBoolean('bitmessagesettings','daemon'):
try: try:
from PyQt4.QtCore import * from PyQt4.QtCore import *