From f9fef3d586b80b183af90329fe5dedcb30f5a480 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 11 Nov 2016 13:41:36 -0500 Subject: [PATCH] reactor.iterate() in dht shutdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -fixes enigmatic `’Port' object has no attribute 'socket’` error --- lbrynet/dht/protocol.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lbrynet/dht/protocol.py b/lbrynet/dht/protocol.py index 37c855c50..8f1d0fd87 100644 --- a/lbrynet/dht/protocol.py +++ b/lbrynet/dht/protocol.py @@ -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()