aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-06-29 13:44:59 +0200
committeriNPUTmice <daniel@gultsch.de>2014-06-29 13:44:59 +0200
commitd58d428874d26636b8813a080051690672b638b3 (patch)
tree71958785d77a5443dd41dadd96b37ad20d448076 /src/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java
parent8eedc1a57fbf79212028fed7e87fb36d6143e0d5 (diff)
more error handling for jingle connections
Diffstat (limited to 'src/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java')
-rw-r--r--src/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java b/src/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java
index a277b74c..d4af624a 100644
--- a/src/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java
+++ b/src/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java
@@ -155,4 +155,12 @@ public class JingleConnectionManager {
Log.d("xmppService","no sid found in incomming ibb packet");
}
}
+
+ public void cancelInTransmission() {
+ for(JingleConnection connection : this.connections) {
+ if (connection.getStatus() == JingleConnection.STATUS_TRANSMITTING) {
+ connection.cancel();
+ }
+ }
+ }
}