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

Don't postpone session-initiate ack

This commit is contained in:
vanitasvitae 2017-08-18 14:28:44 +02:00
parent 524660c870
commit a08e835a52
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -199,14 +199,18 @@ public class JingleSession {
private IQ handleSessionInitiate(JingleElement request) {
JingleDescription<?> description = getSoleContentOrThrow().getDescription();
JingleDescriptionManager descriptionManager = jingleManager.getDescriptionManager(description.getNamespace());
final JingleDescriptionManager descriptionManager = jingleManager.getDescriptionManager(description.getNamespace());
if (descriptionManager == null) {
LOGGER.log(Level.WARNING, "Unsupported description type: " + description.getNamespace());
return JingleElement.createSessionTerminate(getPeer(), getSessionId(), JingleReasonElement.Reason.unsupported_applications);
}
descriptionManager.notifySessionInitiate(this);
Async.go(new Runnable() {
@Override
public void run() {
descriptionManager.notifySessionInitiate(JingleSession.this);
}
});
return IQ.createResultIQ(request);
}