Idle disconnect and reconnect issue

I’m having an issue when the connection to Openfire times out and decides to issue a disconect. I attempt a reconnect with a callLater(xiff.connect) (xiff is the instantiated object of XMPPSocketConnection) when I receive the disconnect event but it only connects and doesn’t login. So xiff.isActive() == true but xiff.isLoggedIn() == false. Any one else have this issue and overcame it? Is this a filed bug with either Openfire or XIFF?

BTW, I’m using the 3.5 version of XIFF in the svn (as of the 3/27 checkin)

I’ve managed to program around this by setting up a timer that is started when the connection event is fired. If the login event if fired the timer is reset. If the timer event gets fired I check for isActive() == true and isLoggedIn() == false. For that case I set my connection object to null and reinstantiate it and reconnect all the required listeners and then reconnect. This cleans up the connection.