Skip to content

Commit

Permalink
Fix WebRtcConnection close by updating publishers immediately (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
luoshaohua authored and jcague committed Jun 18, 2018
1 parent 52d86c7 commit 18c5562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erizo_controller/erizoJS/erizoJSController.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ exports.ErizoJSController = function (threadPool, ioThreadPool) {
}
publisher.removeExternalOutputs().then(function() {
closeNode(publisher);
delete publishers[streamId];
publisher.muxer.close(function(message) {
log.info('message: muxer closed succesfully, ' +
'id: ' + streamId + ', ' +
logger.objectToLog(message));
delete publishers[streamId];
var count = 0;
for (var k in publishers) {
if (publishers.hasOwnProperty(k)) {
Expand Down

0 comments on commit 18c5562

Please sign in to comment.