do not terminate jingle ft session twice (after iq timeout)
This commit is contained in:
parent
00f52226d8
commit
b9a19dc6c7
|
@ -843,6 +843,8 @@ public class JingleFileTransferConnection extends AbstractJingleConnection
|
||||||
if (transport == null) {
|
if (transport == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// TODO consider setting transport callback to null. requires transport to handle null callback
|
||||||
|
//transport.setTransportCallback(null);
|
||||||
transport.terminate();
|
transport.terminate();
|
||||||
this.transport = null;
|
this.transport = null;
|
||||||
}
|
}
|
||||||
|
@ -980,7 +982,10 @@ public class JingleFileTransferConnection extends AbstractJingleConnection
|
||||||
public void onTransportSetupFailed() {
|
public void onTransportSetupFailed() {
|
||||||
final var transport = this.transport;
|
final var transport = this.transport;
|
||||||
if (transport == null) {
|
if (transport == null) {
|
||||||
// this really is not supposed to happen
|
// this can happen on IQ timeouts
|
||||||
|
if (isTerminated()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
sendSessionTerminate(Reason.FAILED_APPLICATION, null);
|
sendSessionTerminate(Reason.FAILED_APPLICATION, null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue