mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-06-04 03:19:44 +00:00
j.Join() blocks on WaitJingle until Jicofo sends session-initiate, which only happens when a second participant joins the room. With the transport-level connect timeout (30-60s), the server crashes if no one joins in time. Switch to j.JoinMUC() which returns immediately after joining the MUC. A background goroutine (waitForJingle) waits for session-initiate and then opens the bridge + negotiates the PeerConnection. This way Connect succeeds as soon as the XMPP connection is established, regardless of whether another participant is present.