title: Leaving XMPPRoom
body: <p>Im developing an app that can log in the user in 2 xmpprooms, but only 2 at the same time, so if he wants to connect to another one I have to disconnect him from the previous and connect to the next one. Whith this code:</p>
  
  <p>This is how I leave the room:</p>
  
  <pre><code>[[xmppRoom] leaveRoom]; 
  [[xmppRoom] deactivate];
  [[xmppRoom] removeDelegate:self];
  </code></pre>
  
  <p>And this is how I join the room:</p>
  
  <pre><code>[xmppRoom activate:[self xmppStream]];                
  [xmppRoom joinRoom];
  </code></pre>
  
  <p>The funky behaviour is that if the room has more than 10 users it crashes without errors but if I enable NSZombies I see that the pointer is in the method <code>[XMPPRoom isJoined]</code>, in this line:</p>
  
  <pre><code>dispatch_sync(moduleQueue, ^{
     result = _isJoined;
  });
  </code></pre>
  
  <p>Any ideas?</p>