mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
Merge pull request #1889 from vector-im/dbkr/close-precreated-track
Close precreated tracks if we never add them
This commit is contained in:
commit
d46156d860
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user