read handle was not being closed after file transfer
This commit is contained in:
parent
aab43c8d6c
commit
a4ea49cf65
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue