mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 14:36:15 -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
b6928a6d0e
commit
1be10f1e02
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.
|
||||
"""
|
||||
if self.closed:
|
||||
return
|
||||
|
||||
if self.upload_request:
|
||||
self.progress[filename]['uploaded_bytes'] += length
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue