mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-29 01:18:51 -04: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
2017509283
commit
efe45288c9
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue