Openfire sending messages to disconnected client?

Hello Everyone,

I have a strange problem. I am using Smack API to connect to OpenFire Server. Client receives messages from OpenFire server. But if I unplug network cable from client then still OpenFire keep sending messages to this client instead of sending messages to offline table (I have ‘Offline Message’ configured in Server). OpenFire Client Sessions always shows this client as ‘Online’ as client never logged out and closed connection to server. Can I set something in Server so that it knows if client is disconnected and send messages to offline table?

Server: Openfire 3.5.0

Smack API: Version 3.1

Thanks.