Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit df2c63f

Browse files
authored
Fix tcp connection cleanup and update stream from forward to mix fail issue (#802)
1 parent 65fde9b commit df2c63f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

source/agent/conference/roomController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ module.exports.create = function (spec, on_init_ok, on_init_failed) {
16141614
if (streamId) {
16151615
streams[streamId][kind].subscriber = streams[streamId][kind].subscribers || [];
16161616
streams[streamId][kind].subscribers.push(terminal_id);
1617-
terminals[terminal_id].subscribed[subscriptionId].audio = streamId;
1617+
terminals[terminal_id].subscribed[subscriptionId][kind] = streamId;
16181618
}
16191619
}
16201620
on_ok('ok');

source/agent/conference/subscription.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class Subscription {
105105
this.media.tracks.forEach(track => {
106106
if (track.from === sourceId) {
107107
// Extract source track from stream
108+
delete track.source;
108109
const source = stream.id === sourceId ?
109110
stream.media.tracks.find(t => t.type === track.type) :
110111
stream.media.tracks.find(t => t.id === sourceId);

0 commit comments

Comments
 (0)