diff --git a/erizo_controller/erizoController/models/Client.js b/erizo_controller/erizoController/models/Client.js index 6c0e922f64..98b22f218b 100644 --- a/erizo_controller/erizoController/models/Client.js +++ b/erizo_controller/erizoController/models/Client.js @@ -735,7 +735,7 @@ class Client extends events.EventEmitter { this.room.streamManager.forEachPublishedStream((stream) => { if (stream.hasExternalOutputSubscriber(url)) { stream.removeExternalOutputSubscriber(url); - this.room.controller.removeExternalOutput(options.id, url, callback); + this.room.controller.removeExternalOutput(stream.id, url, callback); removed = true; } });