# Closing app does not properly leave the meeting

**URL:** <https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928>\
**Category:** Web\
**Created:** [September 17, 2019, 12:31am UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928 "2019-09-17T00:31:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![edward](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/edward/32/1829_2.png) [@edward](https://devforum.zoom.us/u/edward)\
**Post date:** [September 17, 2019, 12:31am UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/1 "2019-09-17T00:31:36Z")

</div>

**Description/Error**  
After joining a zoom meeting through the web sdk client, closing the app by closing the tab/window or refreshing the page doesn’t properly remove the user from the zoom meeting. On other clients, this user will continue to appear on the participants list and a frozen video will show for the user’s video stream.

Expected behavior is observed by clicking on the “leave meeting” option. Otherwise, it is unclear if the web sdk user has left the meeting or if there is some technical issue with the user’s video/audio.

**Which Endpoint/s or Web JS SDK?**  
Web sdk version 1.5.1

**How To Reproduce (If applicable)**  
Join meeting with web sdk and some other (native) client.  
Close the web sdk client window.  
The user will incorrectly continue to appear in the meeting.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [September 17, 2019, 6:58pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/2 "2019-09-17T18:58:52Z")

</div>

Hi @edward,

Thanks for informing us about this.  
By closing the tab to leave the meeting, the participant will show for another 30 secs or so then will be removed. We are aware of this issue and are looking to make enhancements to automatically remove the user when closing the window in one of our future releases.

Thanks

---

<div class="post-metadata">

**Author:** ![edward](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/edward/32/1829_2.png) [@edward](https://devforum.zoom.us/u/edward)\
**Post date:** [September 17, 2019, 10:16pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/3 "2019-09-17T22:16:56Z")

</div>

@michael_p.zoom thanks for the update! FYI- the participants is incorrectly shown for much longer than 30 seconds in my tests… sometimes as long as 5 minutes.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [September 18, 2019, 9:08pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/4 "2019-09-18T21:08:07Z")

</div>

Thanks @edward, we will work on fixing this.

-Tommy

---

<div class="post-metadata">

**Author:** ![vijayk.kannan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vijayk.kannan/32/1550_2.png) [@vijayk.kannan](https://devforum.zoom.us/u/vijayk.kannan)\
**Post date:** [January 27, 2020, 1:07pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/5 "2020-01-27T13:07:48Z")

</div>

Pls keep me posted on this issue

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 28, 2020, 5:13pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/6 "2020-01-28T17:13:00Z")

</div>

Hey @vijayk.kannan,

We will keep you updated. (DEVELOPERS-584)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vijayk.kannan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vijayk.kannan/32/1550_2.png) [@vijayk.kannan](https://devforum.zoom.us/u/vijayk.kannan)\
**Post date:** [April 3, 2020, 4:23am UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/7 "2020-04-03T04:23:48Z")

</div>

Is there any update on this ?

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [April 3, 2020, 5:22am UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/8 "2020-04-03T05:22:24Z")

</div>

Hi @vijayk.kannan,

We’re still working on this issue, however due to the feature freeze[1], this enhancement might be delayed. To stay up to date on the latest release, you can subscribe to your change log page here[2].

1 - [https://blog.zoom.us/wordpress/2020/04/01/a-message-to-our-users/](https://blog.zoom.us/wordpress/2020/04/01/a-message-to-our-users/)  
2 - [https://marketplace.zoom.us/docs/changelog](https://marketplace.zoom.us/docs/changelog)

Thanks

---

<div class="post-metadata">

**Author:** ![steveg](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@steveg](https://devforum.zoom.us/u/steveg)\
**Post date:** [July 30, 2020, 3:38pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/9 "2020-07-30T15:38:21Z")

</div>

The following seems to mitigate this problem and I have so far been unable to reproduce the issue with this code on Chrome (closing tab, refreshing, navigating away, etc):

```auto
window.addEventListener('unload', () => {
  ZoomMtg.leaveMeeting({});
});

```

That said, I’m not sure if this is a reliable solution. It would depend on the implementation of `leaveMeeting` (i.e. does this send a request with `keepalive`, is it synchronous, etc). There is a limited amount of time to respond to the `unload` event and any asynchronous XHR requests without a `keepalive` can easily be cancelled by the browser. Perhaps Zoom folks could chime in on this.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 3, 2020, 5:47pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/10 "2020-08-03T17:47:06Z")

</div>

Hey @steveg,

Thanks for sharing this. This is in our backlog to fix, but I do not have a timeline.

-Tommy

---

<div class="post-metadata">

**Author:** ![k77](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@k77](https://devforum.zoom.us/u/k77)\
**Post date:** [September 25, 2020, 3:35pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/11 "2020-09-25T15:35:25Z")

</div>

Any update on a fix for this, or any ideas for a workaround meanwhile? I am seeing the same as @steveg above. Thanks

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 28, 2020, 8:10pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/12 "2020-09-28T20:10:23Z")

</div>

Hey @k77,

At the moment we don’t have a solid timeline, though this is on our radar and our team will be addressing this in an upcoming release.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![fayazvar.mobile](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fayazvar.mobile/32/16944_2.png) [@fayazvar.mobile](https://devforum.zoom.us/u/fayazvar.mobile)\
**Post date:** [October 16, 2020, 8:19pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/13 "2020-10-16T20:19:40Z")

</div>

Hi @k77 & @tommy,

When I leave or end the Meeting if I start meeting immediately again, the Host will appear twice in the Participant list but after 30 seconds, the old one will get removed automatically, what is the solution for this.

Regards,  
Fayaz

---

<div class="post-metadata">

**Author:** ![fayazvar.mobile](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fayazvar.mobile/32/16944_2.png) [@fayazvar.mobile](https://devforum.zoom.us/u/fayazvar.mobile)\
**Post date:** [October 16, 2020, 8:21pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/14 "2020-10-16T20:21:29Z")

</div>

Hi @steveg,

No, i am using your workaround, but it does not work properly, i can see participants for 30-40 seconds after the meeting is end.

Thanks  
Fayaz

---

<div class="post-metadata">

**Author:** ![k77](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@k77](https://devforum.zoom.us/u/k77)\
**Post date:** [October 19, 2020, 12:17pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/15 "2020-10-19T12:17:50Z")

</div>

Perhaps someone from Zoom can respond… @tommy or @will.zoom ?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 20, 2020, 7:51pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/16 "2020-10-20T19:51:41Z")

</div>

Hey @k77, @fayazvar.mobile,

Please follow this thread for updates:

> [@Incorrect web socket management?](https://devforum.zoom.us/t/incorrect-web-socket-management/33614):
>
> Problem A same client joining a meeting, then leaving and re-joining is seen as two distinct participants by Zoom system (probably because it’s identified based on the socket ID ?) In such case, from Zoom meeting dashboard we can sometime observe that data continue to be streamed to the first connection, as well as the new one. Details Let’s take this example: The “client” participant is the same for both rows. He just left the meeting and re-joined. As you can see, he le…

Basically what is happening is Zoom detects that the user is no longer in the meeting after 30ish seconds, then removes the participant from the UI.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![rmknigh1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rmknigh1/32/19306_2.png) [@rmknigh1](https://devforum.zoom.us/u/rmknigh1)\
**Post date:** [November 25, 2020, 2:56pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/17 "2020-11-25T14:56:17Z")

</div>

Why is my zoom not letting me leave the meeting

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 30, 2020, 8:45pm UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/18 "2020-11-30T20:45:12Z")

</div>

Hey @rmknigh1,

Please create a new topic here: #client-web-sdk and fill out the post template so we have enough details to help. 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![r473641](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/r473641/32/21345_2.png) [@r473641](https://devforum.zoom.us/u/r473641)\
**Post date:** [January 12, 2021, 7:39am UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/19 "2021-01-12T07:39:01Z")

</div>

Pls remove this feature pls

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 13, 2021, 2:08am UTC](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928/20 "2021-01-13T02:08:39Z")

</div>

Hey @r473641,

If you’re encountering issues with a feature of the Web SDK, please submit a new post in the #client-web-sdk category and fill out the post template. We will be sure to assist you ASAP.

Thanks,  
Max

[Next page](https://devforum.zoom.us/t/closing-app-does-not-properly-leave-the-meeting/5928.md?page=2)
