mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-28 08:49:30 -05:00
Prevent ReceiveModeRequest.file_write_func from sending a message to the GUI if the request should be closed
This commit is contained in:
parent
b6928a6d0e
commit
1be10f1e02
@ -348,6 +348,9 @@ class ReceiveModeRequest(Request):
|
||||
"""
|
||||
This function gets called when a specific file is written to.
|
||||
"""
|
||||
if self.closed:
|
||||
return
|
||||
|
||||
if self.upload_request:
|
||||
self.progress[filename]['uploaded_bytes'] += length
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user