read handle was not being closed after file transfer

This commit is contained in:
Kay Kurokawa 2017-09-27 17:02:17 -04:00
parent aab43c8d6c
commit a4ea49cf65

View file

@ -191,6 +191,7 @@ class EncryptedFileReflectorClient(Protocol):
assert self.read_handle is not None, \ assert self.read_handle is not None, \
"self.read_handle was None when trying to start the transfer" "self.read_handle was None when trying to start the transfer"
d = self.file_sender.beginFileTransfer(self.read_handle, self) d = self.file_sender.beginFileTransfer(self.read_handle, self)
d.addCallback(lambda _: self.read_handle.close())
return d return d
def handle_handshake_response(self, response_dict): def handle_handshake_response(self, response_dict):