1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-12 02:29:38 +02:00

Reuse S5B methods

This commit is contained in:
vanitasvitae 2017-06-21 15:28:32 +02:00
parent 6023350364
commit 4c1ee37ea7
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
8 changed files with 265 additions and 6 deletions

View file

@ -92,12 +92,17 @@ public class OutgoingJingleFileOffer extends JingleFileTransferSession {
// Legal
else {
state = State.active;
transportManager.initiateOutgoingSession(transport, new JingleTransportInitiationCallback() {
transportManager.initiateOutgoingSession(getResponder(), transport, new JingleTransportInitiationCallback() {
@Override
public void onSessionInitiated(final BytestreamSession session) {
sendingThread = new SendingThread(session, source);
sendingThread.run();
}
@Override
public void onException(Exception e) {
LOGGER.log(Level.SEVERE, "Cannot create outgoing Bytestream session: ", e);
}
});
}