mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-22 21:53:14 +00:00
Close precreated tracks if we never add them
As the log line says, this should never happen, but if it does we still shouldn't leak tracks.
This commit is contained in:
1 parent
daf6e677d6
commit
e4e721818a
1 file changed
+3
@@ -87,6 +87,9 @@ async function doConnect(
|
||||
logger.warn(
|
||||
"Publishing pre-created audio track but participant already appears to have an microphone track: this shouldn't happen!",
|
||||
);
|
||||
for (const t of audioTracks) {
|
||||
t.stop();
|
||||
}
|
||||
return;
|
||||
}
|
||||
logger.info("Publishing pre-created mic track");
|
||||
|
||||
Reference in new issue
Block a user