XMPPConnection: Don't negotiate a session feature, when marked optional
The session feature has been deprecated as of RFC 6120. Some servers still offer it for client compatibility, but mark it as optional. Not negotiating it in this case saves us a round trip
This commit is contained in:
parent
076abde1b8
commit
3dd1196bbe
1 changed files with 2 additions and 1 deletions
|
@ -1102,7 +1102,8 @@
|
|||
assert(0);
|
||||
}
|
||||
|
||||
if (session != nil)
|
||||
if (session != nil && ![session elementForName: @"optional"
|
||||
namespace: XMPP_NS_SESSION])
|
||||
_needsSession = true;
|
||||
|
||||
if (bind != nil) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue