Repository navigation
Fix for invalid subscriptions - #3
Conversation
there is no subscription on the server, but the removeListener is called for 'EndOfStream'. The subscriptions['EndOfStream'] does not exist and the token is invalid. This fix prevents that the invalid 'token' is used.
|
This issue is based on a false assumption that the This event is emitted any time someone removes a listener. When this event is triggered, the listener may not yet have been removed from the array of listeners for the event. |
|
Hi there, thanks for your Pull Request! A Kurento member needs to verify that this patch is reasonable to test. In case it is, they should write a comment with the phrase |
When releasing a MediaObject, for example a PlayerEndpoint, there is no subscription on the server,
but the removeListener is called for 'EndOfStream'.
The subscriptions['EndOfStream'] does not exist and the token is invalid.
This fix prevents that the invalid 'token' is used, and that an Exception is raised.