reactor.iterate() in dht shutdown

-fixes enigmatic  `’Port' object has no attribute 'socket’` error
This commit is contained in:
Jack 2016-11-11 13:41:36 -05:00
parent ec4f9011b9
commit f9fef3d586

View file

@ -321,3 +321,4 @@ class KademliaProtocol(protocol.DatagramProtocol):
except Exception, e:
log.exception('Failed to cancel %s', self._callLaterList[key])
del self._callLaterList[key]
reactor.iterate()