From d4271d04286241549e87aa03956b1639f3c2fe44 Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Fri, 12 Apr 2013 14:01:22 -0400 Subject: [PATCH] add back in some error handling --- bitmessagemain.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/bitmessagemain.py b/bitmessagemain.py index 697906d3..e9ce1b41 100755 --- a/bitmessagemain.py +++ b/bitmessagemain.py @@ -287,14 +287,13 @@ class receiveDataThread(QThread): except Exception, err: print 'Within receiveDataThread run(), self.sock.close() failed.', err - #try: - del selfInitiatedConnections[self.streamNumber][self] - #self.selfInitiatedConnectionList.remove(self) - printLock.acquire() - print 'removed self (a receiveDataThread) from ConnectionList' - printLock.release() - #except: - # pass + try: + del selfInitiatedConnections[self.streamNumber][self] + printLock.acquire() + print 'removed self (a receiveDataThread) from ConnectionList' + printLock.release() + except: + pass broadcastToSendDataQueues((0, 'shutdown', self.HOST)) if self.connectionIsOrWasFullyEstablished: #We don't want to decrement the number of connections and show the result if we never incremented it in the first place (which we only do if the connection is fully established- meaning that both nodes accepted each other's version packets.) connectionsCountLock.acquire()