mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
lnbase: fix peer clean-up
This commit is contained in:
parent
87cc312d1e
commit
a8b9727817
1 changed files with 2 additions and 1 deletions
|
@ -359,7 +359,8 @@ class Peer(PrintError):
|
|||
|
||||
def close_and_cleanup(self):
|
||||
try:
|
||||
self.writer.close()
|
||||
if self.transport:
|
||||
self.transport.writer.close()
|
||||
except:
|
||||
pass
|
||||
for chan in self.channels.values():
|
||||
|
|
Loading…
Add table
Reference in a new issue