Don't postpone session-initiate ack
This commit is contained in:
parent
524660c870
commit
a08e835a52
|
@ -199,14 +199,18 @@ public class JingleSession {
|
||||||
|
|
||||||
private IQ handleSessionInitiate(JingleElement request) {
|
private IQ handleSessionInitiate(JingleElement request) {
|
||||||
JingleDescription<?> description = getSoleContentOrThrow().getDescription();
|
JingleDescription<?> description = getSoleContentOrThrow().getDescription();
|
||||||
JingleDescriptionManager descriptionManager = jingleManager.getDescriptionManager(description.getNamespace());
|
final JingleDescriptionManager descriptionManager = jingleManager.getDescriptionManager(description.getNamespace());
|
||||||
|
|
||||||
if (descriptionManager == null) {
|
if (descriptionManager == null) {
|
||||||
LOGGER.log(Level.WARNING, "Unsupported description type: " + description.getNamespace());
|
LOGGER.log(Level.WARNING, "Unsupported description type: " + description.getNamespace());
|
||||||
return JingleElement.createSessionTerminate(getPeer(), getSessionId(), JingleReasonElement.Reason.unsupported_applications);
|
return JingleElement.createSessionTerminate(getPeer(), getSessionId(), JingleReasonElement.Reason.unsupported_applications);
|
||||||
}
|
}
|
||||||
|
Async.go(new Runnable() {
|
||||||
descriptionManager.notifySessionInitiate(this);
|
@Override
|
||||||
|
public void run() {
|
||||||
|
descriptionManager.notifySessionInitiate(JingleSession.this);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return IQ.createResultIQ(request);
|
return IQ.createResultIQ(request);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue