# leaveBo() sometimes returns nil

**URL:** <https://devforum.zoom.us/t/leavebo-sometimes-returns-nil/96502>\
**Category:** iOS\
**Created:** [October 10, 2023, 6:08am UTC](https://devforum.zoom.us/t/leavebo-sometimes-returns-nil/96502 "2023-10-10T06:08:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [October 10, 2023, 6:08am UTC](https://devforum.zoom.us/t/leavebo-sometimes-returns-nil/96502/1 "2023-10-10T06:08:36Z")

</div>

Hello,

When exiting a breakout room (BO),

> result = MobileRTC.shared().getMeetingService()? .getAttedeeHelper()? .leaveBO()  
> result2 = MobileRTC.shared().getMeetingService()? .getAssistantHelper()? .leaveBO()

and in most cases it exits as MobileRTC.shared().getMeetingService()? .getAssistantHelper()?.leaveBO()  
But sometimes leaveBo() returns “nil”.

I don’t even know what is causing the error.  
What could be the cause? Also, are there any countermeasures?  
Has anyone else encountered a similar problem?

ZoomSDK:Version5.14.11

Thanks.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [October 11, 2023, 9:11pm UTC](https://devforum.zoom.us/t/leavebo-sometimes-returns-nil/96502/2 "2023-10-11T21:11:12Z")

</div>

Hi @KAZUMA87  
Thanks for reaching out to us!  
Could you be able to document when this issue happens, for example recording your screen or grabbing some screenshots of the error you are facing?  
Also, could you confirm you are on the latest version of meeting SDK?

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [October 12, 2023, 3:22pm UTC](https://devforum.zoom.us/t/leavebo-sometimes-returns-nil/96502/3 "2023-10-12T15:22:51Z")

</div>

Hi @elisa.zoom

Thanks for the reply.  
I changed the version of ZoomSDK to the latest version, but there was no change.

There are no error screens, etc., so based on the log display in Xcode,

The user with host privileges is

> let resultBo:Bool? = MobileRTC.shared().getMeetingService()? .getAssistantHelper()? .joinBO(bo)

to join BO. In this case, resultBo returns true.

To Leave from the BO, the

> MobileRTC.shared().getMeetingService()? .getAttedeeHelper()? .leaveBO()

and

> MobileRTC.shared().getMeetingService()? .getAssistantHelper()? .leaveBO()

both of which use leaveBO().  
If one side returns true and the other side returns nil, it has successfully exited, which is roughly 70% of the time.  
If both sides return nil in about 30% of the cases, the image is not displayed correctly when returning to the main session.  
Other information,

> if let meetingService = MobileRTC.shared().getMeetingService() {  
> let meetingState = meetingService.getMeetingState()  
> print(“Current Meeting State: (meetingState.rawValue)”)  
> }

This returns 3 100% of the time, although it also takes

> let boService = MobileRTC.shared().getMeetingService()? .getBOStatus()  
> print(boService?.rawValue)

will return 100% of 2.

This is the situation. I don’t understand the point that it fails 30% of the time, not every time.  
Is there any way to counteract this?

---

<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:** [November 12, 2023, 1:23am UTC](https://devforum.zoom.us/t/leavebo-sometimes-returns-nil/96502/4 "2023-11-12T01:23:47Z")

</div>

Closed on November 12, 2023, 1:23am UTC

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