XmppConnection.isconnected() give incorrect results

hello community,

i am using XmppConnection.isConnected() it give me true even though disconnect from chat sever.i have been used connectionlistener but its not fire immediately.please help me what should i do?

I have the same problem. I do some restarts on the openfire server.

After some restarts althrough the ConnectionListener seems to be working properly (indicating that there was a disconnect, or a successful connection) suddenly

It displays that the client is connected however the connection is not listed on the openfire sessions.

Anyone with the same problem?