Skip to content

Commit

Permalink
Fix crashes in addRemoteCandidate when subscriber is not removed from…
Browse files Browse the repository at this point in the history
… publisher (#1227)
  • Loading branch information
luoshaohua authored and jcague committed Jun 4, 2018
1 parent 696339e commit b1ec153
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erizo_controller/erizoJS/erizoJSController.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ exports.ErizoJSController = function (threadPool, ioThreadPool) {
let subscriber = publisher.getSubscriber(subscriberKey);
log.info('message: Removing subscriber, id: ' + subscriberKey);
closeNode(subscriber);
publisher.removeSubscriber(subscriberKey);
}
publisher.removeExternalOutputs().then(function() {
closeNode(publisher);
Expand Down

0 comments on commit b1ec153

Please sign in to comment.