mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-26 22:37:11 -05:00
Oops, finish resolving merge conflict
This commit is contained in:
parent
f4cd49e9dc
commit
2fcedb8730
@ -347,29 +347,21 @@ class ReceiveModeRequest(Request):
|
||||
self.web.common.log('ReceiveModeRequest', 'close')
|
||||
|
||||
try:
|
||||
<<<<<<< HEAD
|
||||
upload_id = self.upload_id
|
||||
|
||||
if not self.web.stop_q.empty():
|
||||
# Inform the GUI that the upload has canceled
|
||||
self.web.add_request(self.web.REQUEST_UPLOAD_CANCELED, self.path, {
|
||||
'id': upload_id
|
||||
})
|
||||
else:
|
||||
=======
|
||||
if self.told_gui_about_request:
|
||||
upload_id = self.upload_id
|
||||
>>>>>>> develop
|
||||
# Inform the GUI that the upload has finished
|
||||
self.web.add_request(self.web.REQUEST_UPLOAD_FINISHED, self.path, {
|
||||
'id': upload_id
|
||||
})
|
||||
<<<<<<< HEAD
|
||||
|
||||
self.web.receive_mode.uploads_in_progress.remove(upload_id)
|
||||
=======
|
||||
if not self.web.stop_q.empty():
|
||||
# Inform the GUI that the upload has canceled
|
||||
self.web.add_request(self.web.REQUEST_UPLOAD_CANCELED, self.path, {
|
||||
'id': upload_id
|
||||
})
|
||||
else:
|
||||
# Inform the GUI that the upload has finished
|
||||
self.web.add_request(self.web.REQUEST_UPLOAD_FINISHED, self.path, {
|
||||
'id': upload_id
|
||||
})
|
||||
self.web.receive_mode.uploads_in_progress.remove(upload_id)
|
||||
>>>>>>> develop
|
||||
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user