@@ -1243,6 +1243,10 @@ public class JingleFileTransferConnection extends AbstractJingleConnection
if (transition(target)) {
// we change state before terminating transport so we don't consume the following
// IOException and turn it into a connectivity error
+
+ if (isInitiator() && reason == Reason.CANCEL) {
+ this.message.setErrorMessage(Message.ERROR_MESSAGE_CANCELLED);
+ }
terminateTransport();
final JinglePacket jinglePacket =
new JinglePacket(JinglePacket.Action.SESSION_TERMINATE, id.sessionId);