# Error code when locking meeting

**URL:** <https://devforum.zoom.us/t/error-code-when-locking-meeting/97717>\
**Category:** Android\
**Created:** [November 1, 2023, 6:39pm UTC](https://devforum.zoom.us/t/error-code-when-locking-meeting/97717 "2023-11-01T18:39:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuzix\_greg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vuzix_greg/32/45663_2.png) [@vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg)\
**Post date:** [November 1, 2023, 6:39pm UTC](https://devforum.zoom.us/t/error-code-when-locking-meeting/97717/1 "2023-11-01T18:39:12Z")

</div>

In SDK v5.16.0, new meeting statuses were introduced. Among these were MeetingStatus.MEETING\_STATUS\_LOCKED and MeetingStatus.MEETING\_STATUS\_UNLOCKED. When you are host and you lock the meeting with InMeetingService.lockMeeting(boolean), the SDK meeting status changes to one of these new statues.

This seems odd that the meeting status is no longer considered to be MEETING\_STATUS\_INMEETING, even though you are still in a meeting. I have logic that is now failing because I check the meeting status occasionally to see if I am in a meeting and I no longer think I am. I never checked for MEETING\_STATUS\_LOCKED or MEETING\_STATUS\_UNLOCKED. I’m already planning on using a different mechanism to determine if I am in a meeting since meeting status no longer seems reliable.

But another thing I noticed, when the meeting status changes to MEETING\_STATUS\_LOCKED, any registered MeetingServiceListeners will have onMeetingStatusChanged() invoked, but the errorCode parameter is 1, not zero. When the status changes to MEETING\_STATUS\_UNLOCKED, the errorCode is zero. Is there a reason for the errorCode of 1 when a meeting is locked? When I see a non-zero errorCode, I toast different messages to the user and errorCode=1 produces an “invalid meeting ID” message. I can of course filter this out when the status is locked, but I just wanted to point it out because I think it’s a bug.

---

<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:** [December 2, 2023, 4:39am UTC](https://devforum.zoom.us/t/error-code-when-locking-meeting/97717/2 "2023-12-02T04:39:27Z")

</div>

Closed on December 2, 2023, 4:39am UTC

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