Merge pull request #1889 from vector-im/dbkr/close-precreated-track

Close precreated tracks if we never add them
This commit is contained in:
David Baker 2023-11-15 14:44:34 +00:00 committed by GitHub
commit d46156d860
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");