From 8e042930f266c7707b1906deaf34f64c46fdd670 Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Mon, 29 Apr 2013 17:20:09 -0400 Subject: [PATCH] add a simple printLock --- src/bitmessagemain.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index 09e8b6eb..ab9a134d 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -1989,7 +1989,9 @@ class sendDataThread(QThread): QThread.__init__(self, parent) self.mailbox = Queue.Queue() sendDataQueues.append(self.mailbox) - print 'The length of sendDataQueues is now:', len(sendDataQueues) + printLock.acquire() + print 'The length of sendDataQueues at sendDataThread init is:', len(sendDataQueues) + printLock.release() self.data = '' def setup(self,sock,HOST,PORT,streamNumber,objectsOfWhichThisRemoteNodeIsAlreadyAware):