fix cancelled p2p ft showing up as such
(cherry picked from commit 13a879841f9f178961abceaba97d304f1ca4a0a9)
This commit is contained in:
parent
f992187757
commit
3facac2e0b
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue