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:
Job Evers-Meltzer 2016-11-11 10:21:50 -06:00
parent 0abc081edc
commit d41881596d

View file

@ -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()