1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 17:19:39 +02:00
This commit is contained in:
vanitasvitae 2017-07-06 14:00:36 +02:00
parent a3bb7e3f59
commit 87949f94b9
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
7 changed files with 164 additions and 3 deletions

View file

@ -20,6 +20,7 @@ import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.concurrent.Future;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jivesoftware.smack.SmackException;
@ -171,7 +172,8 @@ public abstract class JingleSession implements JingleSessionHandler {
return IQ.createResultIQ(jingle);
}
} catch (InterruptedException | XMPPException.XMPPErrorException | SmackException.NotConnectedException | SmackException.NoResponseException e) {
return null; //TODO:
LOGGER.log(Level.SEVERE, "Caught an Exception: ", e);
return null; //TODO: Handle better?
}
}

View file

@ -0,0 +1,19 @@
package org.jivesoftware.smackx.jingle;
/**
* Created by vanitas on 06.07.17.
*/
public class JingleStreamRouter {
private static JingleStreamRouter INSTANCE;
private JingleStreamRouter() {
}
public static JingleStreamRouter getInstance() {
if (INSTANCE == null) {
INSTANCE = new JingleStreamRouter();
}
return INSTANCE;
}
}