Prevent ReceiveModeRequest.file_write_func from sending a message to the GUI if the request should be closed

This commit is contained in:
Micah Lee 2019-01-21 10:56:31 -08:00
parent b6928a6d0e
commit 1be10f1e02
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -348,6 +348,9 @@ class ReceiveModeRequest(Request):
""" """
This function gets called when a specific file is written to. This function gets called when a specific file is written to.
""" """
if self.closed:
return
if self.upload_request: if self.upload_request:
self.progress[filename]['uploaded_bytes'] += length self.progress[filename]['uploaded_bytes'] += length