added several printLocks to improve console output
This commit is contained in:
parent
3ab48c2fe3
commit
38ae186a93
|
@ -297,7 +297,9 @@ class receiveDataThread(threading.Thread):
|
|||
try:
|
||||
del shared.connectedHostsList[self.HOST]
|
||||
except Exception, err:
|
||||
shared.printLock.acquire()
|
||||
print 'Could not delete', self.HOST, 'from shared.connectedHostsList.', err
|
||||
shared.printLock.release()
|
||||
shared.UISignalQueue.put(('updateNetworkStatusTab','no data'))
|
||||
shared.printLock.acquire()
|
||||
print 'The size of the connectedHostsList is now:', len(shared.connectedHostsList)
|
||||
|
@ -2046,7 +2048,6 @@ class sendDataThread(threading.Thread):
|
|||
shared.printLock.release()
|
||||
self.versionSent = 1
|
||||
|
||||
|
||||
def run(self):
|
||||
while True:
|
||||
deststream,command,data = self.mailbox.get()
|
||||
|
|
|
@ -1315,7 +1315,9 @@ class MyForm(QtGui.QMainWindow):
|
|||
self.trayIcon.hide()
|
||||
self.statusBar().showMessage('All done. Closing user interface...')
|
||||
event.accept()
|
||||
shared.printLock.acquire()
|
||||
print 'Done. (passed event.accept())'
|
||||
shared.printLock.release()
|
||||
os._exit(0)
|
||||
|
||||
def on_action_InboxMessageForceHtml(self):
|
||||
|
|
|
@ -149,7 +149,9 @@ def doCleanShutdown():
|
|||
print 'Completed pickle.dump. Closing output...'
|
||||
output.close()
|
||||
knownNodesLock.release()
|
||||
printLock.acquire()
|
||||
print 'Finished closing knownnodes.dat output file.'
|
||||
printLock.release()
|
||||
UISignalQueue.put(('updateStatusBar','Done saving the knownNodes list of peers to disk.'))
|
||||
|
||||
broadcastToSendDataQueues((0, 'shutdown', 'all'))
|
||||
|
@ -165,8 +167,10 @@ def doCleanShutdown():
|
|||
sqlSubmitQueue.put('SELECT address FROM subscriptions')
|
||||
sqlSubmitQueue.put('')
|
||||
sqlReturnQueue.get()
|
||||
sqlLock.release()
|
||||
sqlLock.release()
|
||||
printLock.acquire()
|
||||
print 'Finished flushing inventory.'
|
||||
printLock.release()
|
||||
sqlSubmitQueue.put('exit')
|
||||
|
||||
if safeConfigGetBoolean('bitmessagesettings','daemon'):
|
||||
|
|
Loading…
Reference in New Issue
Block a user