From a4ea49cf6588c4079b11465e8416d4b378512476 Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Wed, 27 Sep 2017 17:02:17 -0400 Subject: [PATCH] read handle was not being closed after file transfer --- lbrynet/reflector/client/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lbrynet/reflector/client/client.py b/lbrynet/reflector/client/client.py index 660abbd39..7e0060f93 100644 --- a/lbrynet/reflector/client/client.py +++ b/lbrynet/reflector/client/client.py @@ -191,6 +191,7 @@ class EncryptedFileReflectorClient(Protocol): assert self.read_handle is not None, \ "self.read_handle was None when trying to start the transfer" d = self.file_sender.beginFileTransfer(self.read_handle, self) + d.addCallback(lambda _: self.read_handle.close()) return d def handle_handshake_response(self, response_dict):