mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Oops, was passing self.upload_error into the wrong close function
This commit is contained in:
parent
e625d3b009
commit
1dbd82f74a
@ -193,7 +193,7 @@ class ReceiveModeFile(object):
|
|||||||
"""
|
"""
|
||||||
if self.upload_error or (not self.onionshare_request.stop_q.empty()):
|
if self.upload_error or (not self.onionshare_request.stop_q.empty()):
|
||||||
self.close()
|
self.close()
|
||||||
self.onionshare_request.close(self.upload_error)
|
self.onionshare_request.close()
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -217,7 +217,7 @@ class ReceiveModeFile(object):
|
|||||||
except:
|
except:
|
||||||
self.upload_error = True
|
self.upload_error = True
|
||||||
|
|
||||||
self.onionshare_close_func(self.onionshare_filename)
|
self.onionshare_close_func(self.onionshare_filename, self.upload_error)
|
||||||
|
|
||||||
|
|
||||||
class ReceiveModeRequest(Request):
|
class ReceiveModeRequest(Request):
|
||||||
|
Loading…
Reference in New Issue
Block a user