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

processing queue doesn't fully process actions #4

Open
jensengar opened this issue Apr 3, 2017 · 0 comments
Open

processing queue doesn't fully process actions #4

jensengar opened this issue Apr 3, 2017 · 0 comments

Comments

@jensengar
Copy link

In our implementation, our mute/unmute functionality calls jingle-media-session.switchStreams. We have found if one or multiple people mute/unmute too fast it causes all sorts of issues. We tracked it down to this:

screen shot 2017-04-03 at 2 22 50 pm

Notice two setRemoteDescriptions then two setLocalDescriptions? I'm guessing the first one is the unmute so we are adding a new stream which takes a bit longer to fully process compared to the second one which is much quicker since it doesn't have to process the addStream. In any case, I would think the call to switchStreams would process fully (add and remove) before running the next call to switchStreams. This is definitely a race condition as it doesn't happen every time, but it does happen enough to be a problem for us. Can I provide any more information or can you provide any feedback/suggestions?

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

No branches or pull requests

1 participant