Skip to content

Commit

Permalink
Bugfix: make sure that every destroyed plugin handle is 'detached' (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyCookie committed May 4, 2021
1 parent 11942f5 commit b003580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/janus.js
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,6 @@ function Janus(gatewayCallbacks) {
// Don't warn here because destroyHandle causes this situation.
return;
}
pluginHandle.detached = true;
pluginHandle.ondetached();
pluginHandle.detach();
} else if(json["janus"] === "media") {
Expand Down Expand Up @@ -1679,6 +1678,7 @@ function Janus(gatewayCallbacks) {
callbacks.success();
return;
}
pluginHandle.detached = true;
if(noRequest) {
// We're only removing the handle locally
delete pluginHandles[handleId];
Expand Down

0 comments on commit b003580

Please sign in to comment.