mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Temp
This commit is contained in:
parent
a3bb7e3f59
commit
87949f94b9
7 changed files with 164 additions and 3 deletions
|
@ -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?
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue