Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues when unsubscribing streams #1342

Merged
merged 3 commits into from
Dec 5, 2018

Conversation

jcague
Copy link
Contributor

@jcague jcague commented Dec 5, 2018

Description

This PR mainly fixes an issue when unsubscribing multiple streams at the same time. But it also adds more logging in RoomController and fixes a memory leak when using amqper.

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

Not needed.

[] It includes documentation for these changes in /doc.

Copy link
Contributor

@lodoyun lodoyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks very good to me 👍

`response: ${message}, ` +
`clientId: ${subscriberId}, ` +
`streamId: ${streamId}`);
const newIndex = subscribers[streamId].indexOf(subscriberId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! 💯

@@ -206,12 +206,10 @@ exports.broadcast = (topic, message, callback) => {
/*
* Calls remotely the 'method' function defined in rpcPublic of 'to'.
*/
exports.callRpc = (to, method, args, callbacks, timeout) => {
exports.callRpc = (to, method, args, callbacks = {}, timeout = TIMEOUT) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jcague jcague merged commit 404f8c7 into lynckia:master Dec 5, 2018
Arri98 pushed a commit to Arri98/licode that referenced this pull request Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants