1
0
Fork 1

fix cancelled p2p ft showing up as such

(cherry picked from commit 13a879841f9f178961abceaba97d304f1ca4a0a9)
This commit is contained in:
Daniel Gultsch 2024-04-11 20:20:23 +02:00 committed by Arne
parent f992187757
commit 3facac2e0b

View file

@ -1234,6 +1234,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);