mirror of
https://github.com/VallierDev/uu-remote-linux.git
synced 2026-11-16 16:50:41 +01:00
The ICE transport state callback was created before the DTLS transport and captured the default placeholder, whose state never leaves New. Every later ICE change therefore computed the peer state against a "New" DTLS: after a brief ICE Disconnected -> Connected the PeerConnection settled on New instead of Connected, so the idle room renewal treated the still-working port-mapping peer as idle and tore the room down. Wire the callback to the real DTLS transport through a weak slot filled right after it is created. Fixes #109 Co-Authored-By: Claude Opus 5.5 <[email protected]>