Oops, was passing self.upload_error into the wrong close function

This commit is contained in:
Micah Lee 2019-02-12 16:02:19 -08:00
parent e625d3b009
commit 1dbd82f74a
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -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):