Index: src/XMPPConnection.m ================================================================== --- src/XMPPConnection.m +++ src/XMPPConnection.m @@ -1100,11 +1100,12 @@ } assert(0); } - if (session != nil) + if (session != nil && ![session elementForName: @"optional" + namespace: XMPP_NS_SESSION]) _needsSession = true; if (bind != nil) { [self XMPP_sendResourceBind]; return;