persist 'cancelled' annotation on failed file transfer
This commit is contained in:
parent
3a489741e7
commit
97eb7d4e48
|
@ -1245,7 +1245,10 @@ public class JingleFileTransferConnection extends AbstractJingleConnection
|
||||||
// IOException and turn it into a connectivity error
|
// IOException and turn it into a connectivity error
|
||||||
|
|
||||||
if (isInitiator() && reason == Reason.CANCEL) {
|
if (isInitiator() && reason == Reason.CANCEL) {
|
||||||
this.message.setErrorMessage(Message.ERROR_MESSAGE_CANCELLED);
|
// message hooks have already run so we need to mark to persist the 'cancelled'
|
||||||
|
// status
|
||||||
|
xmppConnectionService.markMessage(
|
||||||
|
message, Message.STATUS_SEND_FAILED, Message.ERROR_MESSAGE_CANCELLED);
|
||||||
}
|
}
|
||||||
terminateTransport();
|
terminateTransport();
|
||||||
final JinglePacket jinglePacket =
|
final JinglePacket jinglePacket =
|
||||||
|
|
Loading…
Reference in a new issue