forked from LBRYCommunity/lbry-sdk
fix teardown error
This commit is contained in:
parent
bc0da5e2d1
commit
ae631f05c3
1 changed files with 1 additions and 2 deletions
|
@ -22,7 +22,6 @@ import datastore
|
||||||
import protocol
|
import protocol
|
||||||
from peerfinder import DHTPeerFinder
|
from peerfinder import DHTPeerFinder
|
||||||
from contact import ContactManager
|
from contact import ContactManager
|
||||||
from distance import Distance
|
|
||||||
from iterativefind import iterativeFind
|
from iterativefind import iterativeFind
|
||||||
|
|
||||||
|
|
||||||
|
@ -156,7 +155,7 @@ class Node(MockKademliaHelper):
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
log.warning("unclean shutdown of the dht node")
|
log.warning("unclean shutdown of the dht node")
|
||||||
if self._listeningPort is not None:
|
if hasattr(self, "_listeningPort") and self._listeningPort is not None:
|
||||||
self._listeningPort.stopListening()
|
self._listeningPort.stopListening()
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
|
Loading…
Add table
Reference in a new issue