diff --git a/assets/js/onlyConference.js b/assets/js/onlyConference.js index 91451fd7b..363501101 100644 --- a/assets/js/onlyConference.js +++ b/assets/js/onlyConference.js @@ -30,6 +30,7 @@ api.addListener('videoConferenceJoined', function (e) { api.addListener('videoConferenceLeft', function (e) { leaveMeeting(); initStarSend(); + api = null; }); if (setTileview === 1) { @@ -85,7 +86,9 @@ function checkClose() { leaveMeeting(); initStarSend(); } - api.executeCommand('hangup'); + if (api){ + api.executeCommand('hangup'); + } leaveMeeting(); }