# Disconnection from meeting not working

**URL:** <https://devforum.zoom.us/t/disconnection-from-meeting-not-working/15721>\
**Category:** Meeting SDK\
**Created:** [May 1, 2020, 1:48pm UTC](https://devforum.zoom.us/t/disconnection-from-meeting-not-working/15721 "2020-05-01T13:48:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bragma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bragma/32/4213_2.png) [@bragma](https://devforum.zoom.us/u/bragma)\
**Post date:** [May 1, 2020, 1:48pm UTC](https://devforum.zoom.us/t/disconnection-from-meeting-not-working/15721/1 "2020-05-01T13:48:31Z")

</div>

Hi,  
what’s the proper way to disconnect from a meeting? I am using the desktop sdk, calling “Leave” from meeting service but it does not seem to work. I receive no disconnected/ended state event and I’m still in even if no error is reported. I’ve tried to specify both end/leave options to but no avail. Any idea on what may be wrong?

Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 2, 2020, 2:25am UTC](https://devforum.zoom.us/t/disconnection-from-meeting-not-working/15721/2 "2020-05-02T02:25:31Z")

</div>

Hi [bragma](https://devforum.zoom.us/u/bragma),

Thanks for the post. I assume this is for Windows SDK? Or C# wrapper?

```auto
	/// \brief Leave meeting.
	/// \param leaveCmd Leave meeting command. For more details, see \link LeaveMeetingCmd \endlink enum. 
	/// \return If the function succeeds, the return value is SDKErr_Success.
	///Otherwise failed. To get extended error information, see \link SDKError \endlink enum.
	virtual SDKError Leave(LeaveMeetingCmd leaveCmd) = 0;

```

The leave interface([https://github.com/zoom/zoom-sdk-windows/blob/master/h/meeting\_service\_interface.h#L554](https://github.com/zoom/zoom-sdk-windows/blob/master/h/meeting_service_interface.h#L554)) is expecting a parameter and it should return an SDKError. Are you getting any error from this interface?

Thanks!

---

<div class="post-metadata">

**Author:** ![bragma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bragma/32/4213_2.png) [@bragma](https://devforum.zoom.us/u/bragma)\
**Post date:** [May 2, 2020, 8:12am UTC](https://devforum.zoom.us/t/disconnection-from-meeting-not-working/15721/3 "2020-05-02T08:12:58Z")

</div>

You were totally right. Return code was checked incorrectly, I was trying to end a meeting while I was just a participant. Sorry for that, we can close the case.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 9, 2020, 12:41am UTC](https://devforum.zoom.us/t/disconnection-from-meeting-not-working/15721/4 "2020-05-09T00:41:50Z")

</div>

Glad to hear that the problem is resolved. I will go ahead and close this. Happy Zooming! 🙂

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 9, 2020, 12:41am UTC](https://devforum.zoom.us/t/disconnection-from-meeting-not-working/15721/5 "2020-05-09T00:41:54Z")

</div>

Closed on May 9, 2020, 12:41am UTC


