# Leaving meeting

**URL:** <https://devforum.zoom.us/t/leaving-meeting/107174>\
**Category:** API and Webhooks\
**Tags:** webhooks, api, video-sdk, sdk\
**Created:** [April 4, 2024, 10:36am UTC](https://devforum.zoom.us/t/leaving-meeting/107174 "2024-04-04T10:36:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![macharashvili786](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/macharashvili786/32/49642_2.png) [@macharashvili786](https://devforum.zoom.us/u/macharashvili786)\
**Post date:** [April 4, 2024, 10:36am UTC](https://devforum.zoom.us/t/leaving-meeting/107174/1 "2024-04-04T10:36:06Z")

</div>

I am facing the issues, when i want to leave meeting i am getting error:

{“type”:“IMPROPER\_MEETING\_STATE”,“reason”:“closed”}

I am using this method to leave meeting:

async leaveMeeting() {  
if (this.videoClient$.getSessionInfo().isInMeeting !this.isLeaving) {  
this.isLeaving = true;  
try {  
await this.videoClient$.leave();  
} finally {  
this.isLeaving = false;  
}  
}  
}

also i have weird bug, as was suggested i implemented zone-flag.ts file in my angular project, but navigation is not working now, returns warning:

navigation happens outside angular zone. which brokes components

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 8, 2025, 2:12am UTC](https://devforum.zoom.us/t/leaving-meeting/107174/2 "2025-04-08T02:12:36Z")

</div>

Closed on April 8, 2025, 2:12am UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
