Skip to content

Commit

Permalink
xmppStream.myJID was overwritten if server specified a resource durin…
Browse files Browse the repository at this point in the history
…g binding. This caused the xmppStream to lock into that particular resource as if it had been requested by the user. In some cases this caused problems, when xmpp servers didn't realize a previous connection (with the same resource) had been dropped. The xmppStream now distinguishes (internally) between the myJID requested by the user, and the myJID set by the server.
  • Loading branch information
robbiehanson committed Mar 7, 2012
1 parent 5ba35ce commit a143780
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 118 deletions.
3 changes: 2 additions & 1 deletion Core/XMPPStream.h
Expand Up @@ -66,7 +66,8 @@ typedef enum XMPPStreamErrorCode XMPPStreamErrorCode;

NSString *appId;

XMPPJID *myJID;
XMPPJID *myJID_setByClient;
XMPPJID *myJID_setByServer;
XMPPJID *remoteJID;

XMPPPresence *myPresence;
Expand Down

0 comments on commit a143780

Please sign in to comment.