diff --git a/onionshare/web/receive_mode.py b/onionshare/web/receive_mode.py index a64c2a73..ad72c9f4 100644 --- a/onionshare/web/receive_mode.py +++ b/onionshare/web/receive_mode.py @@ -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