git » sdk » commit c887f7d

Wait if we don't have remoteDescription yet

author Stephen Paul Weber
2023-10-11 23:15:12 UTC
committer Stephen Paul Weber
2023-10-11 23:15:12 UTC
parent 4ae996eafb287b6bfb3f78bc3a52587723fcbb77

Wait if we don't have remoteDescription yet

xmpp/jingle/Session.hx +1 -1

diff --git a/xmpp/jingle/Session.hx b/xmpp/jingle/Session.hx
index 8b8b71c..a64a129 100644
--- a/xmpp/jingle/Session.hx
+++ b/xmpp/jingle/Session.hx
@@ -341,7 +341,7 @@ class InitiatedSession implements Session {
 	}
 
 	public function transportInfo(stanza: Stanza) {
-		if (pc == null) {
+		if (pc == null || remoteDescription == null) {
 			queuedInboundTransportInfo.push(stanza);
 			return Promise.resolve(null);
 		}