Fix sending messages crashing
This commit is contained in:
parent
9197c425d2
commit
5708a38be0
|
@ -178,7 +178,7 @@ class Missing(object):
|
|||
with self.lock:
|
||||
if objectHash in self.hashes:
|
||||
del self.hashes[objectHash]
|
||||
if current_thread().peer in self.pending:
|
||||
if hasattr(current_thread(), 'peer') and current_thread().peer in self.pending:
|
||||
self.pending[current_thread().peer]['received'] = time.time()
|
||||
for thread in self.pending.keys():
|
||||
with self.lock:
|
||||
|
|
Loading…
Reference in New Issue
Block a user