Object requesting fix
This commit is contained in:
parent
9ed59dd825
commit
9197c425d2
|
@ -178,15 +178,11 @@ class Missing(object):
|
||||||
with self.lock:
|
with self.lock:
|
||||||
if objectHash in self.hashes:
|
if objectHash in self.hashes:
|
||||||
del self.hashes[objectHash]
|
del self.hashes[objectHash]
|
||||||
self.pending[current_thread().peer]['received'] = time.time()
|
if current_thread().peer in self.pending:
|
||||||
toDelete = []
|
self.pending[current_thread().peer]['received'] = time.time()
|
||||||
for thread in self.pending.keys():
|
for thread in self.pending.keys():
|
||||||
with self.lock:
|
with self.lock:
|
||||||
if objectHash in self.pending[thread]['objects']:
|
if objectHash in self.pending[thread]['objects']:
|
||||||
toDelete.append(objectHash)
|
|
||||||
for thread in toDelete:
|
|
||||||
with self.lock:
|
|
||||||
if thread in self.pending:
|
|
||||||
self.pending[thread]['objects'].remove(objectHash)
|
self.pending[thread]['objects'].remove(objectHash)
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user