diff --git a/lbrynet/dht/protocol.py b/lbrynet/dht/protocol.py index 37c855c50..02f322698 100644 --- a/lbrynet/dht/protocol.py +++ b/lbrynet/dht/protocol.py @@ -321,3 +321,7 @@ class KademliaProtocol(protocol.DatagramProtocol): except Exception, e: log.exception('Failed to cancel %s', 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()