Kick yourself out

Server :Openfire 4.3.2
Client(Win): qxmpp 1.1
Client(Mac):XMPPFramework 4.0
Client(IOS):XMPPFramework 4.0

When connecting, you will occasionally kick yourself out. When adding code to log, that oldsession and newsession streamid are the same. What if we solve this problem?