mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-07-03 14:05:39 +02:00
ca50e7fe81
In peer-routing mode installControlSession() returns early when the transport does not implement transport.ControlPlane (e.g. datachannel), leaving acceptHandshake() never called and s.sessionID never set. servePeer() then spin-waits forever for a sessionID that never arrives, so the client never receives the SERVER_WELCOME frame. Mirror the legacy path from waitHandshake/serveSingle: if controlConn is nil, drive acceptHandshake directly on the per-peer smux session before entering the AcceptStream loop.