Restore reactor.iterate in dht shutdown
This reverts the change made in 693fef1964
Not sure why this is needed, but taking this out sometimes causes
`exceptions.AttributeError: 'Port' object has no attribute 'socket'`
to happen on shutdown.
This commit is contained in:
parent
0abc081edc
commit
d41881596d
1 changed files with 4 additions and 0 deletions
|
@ -321,3 +321,7 @@ class KademliaProtocol(protocol.DatagramProtocol):
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.exception('Failed to cancel %s', self._callLaterList[key])
|
log.exception('Failed to cancel %s', self._callLaterList[key])
|
||||||
del self._callLaterList[key]
|
del self._callLaterList[key]
|
||||||
|
# not sure why this is needed, but taking this out sometimes causes
|
||||||
|
# exceptions.AttributeError: 'Port' object has no attribute 'socket'
|
||||||
|
# to happen on shutdown
|
||||||
|
reactor.iterate()
|
||||||
|
|
Loading…
Reference in a new issue