Commit 5daf0b09 authored by Saul Ibarra's avatar Saul Ibarra

Don't rely on a failed transfer reason being set

parent 50d0b99c
......@@ -3793,7 +3793,11 @@ class BlinkFileTransfer(object):
call_later(3, self.sip_session.end)
else:
self.sip_session.end()
self._terminate(failure_reason=notification.data.reason)
if notification.data.error:
failure_reason = notification.data.reason or 'Failed'
else:
failure_reason = None
self._terminate(failure_reason=failure_reason)
class TransferStateLabel(QLabel, ColorHelperMixin):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment