I’m using Smack for connectiong to Openfire server. Following code logs me in:
ConnectionConfiguration confConn = new ConnectionConfiguration(serverAddress, serverPort, serviceName);
connection = new XMPPConnection(confConn);
If I quit the application withoul logging out, I am disconnected (connection.disconnect() is executed), but I’m still logged in.
When I start the app, the code makes new connection, connects me, and tries to log me with the same account parameters.
I read in this forum that this is not allowed, i.e. stream:error (conflict) is thrown.
The Openfire Resource Policy is set to: Always kick - If there is a resource conflict, immediately kick the other resource.
Can some one tell me how can I logout???
Thanks in advance…