Exit XMPPRoom

I am developing an application that can log into 2 xmpprooms, but only 2 at the same time, so if he wants to connect to another I have to disconnect it from the previous one and connect to the next one. With this code:

This is how I leave the room:

[[xmppRoom] leaveRoom]; 
[[xmppRoom] deactivate];
[[xmppRoom] removeDelegate:self];

      

And this is how I enter the room:

[xmppRoom activate:[self xmppStream]];                
[xmppRoom joinRoom];

      

The funky behavior is that if there are more than 10 users in the room, it crashes without error, but if I enable NSZombies, I see that the pointer is in the method [XMPPRoom isJoined]

, on this line:

dispatch_sync(moduleQueue, ^{
   result = _isJoined;
});

      

Any ideas?

+3


source to share


1 answer


You haven't provided a lot of information to work with, but your problem can be corrected by searching for this article , which explains max users and how it handles max users. Good documentation by the way, I highly recommend you check it out. And if you have any future xmpp issues, check this website first.



+1


source







All Articles