1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 13:32:07 +01:00

Clears bosh client instance on shutdown. Fixes SMACK-829.

This commit is contained in:
damencho 2018-08-23 16:22:25 -05:00
parent 158103c918
commit 3ffdb9befd

View file

@ -253,6 +253,16 @@ public class XMPPBOSHConnection extends AbstractXMPPConnection {
*/ */
@Override @Override
protected void shutdown() { protected void shutdown() {
if (client != null) {
try {
client.disconnect();
} catch (Exception e) {
LOGGER.log(Level.WARNING, "shutdown", e);
}
client = null;
}
setWasAuthenticated(); setWasAuthenticated();
sessionID = null; sessionID = null;
done = true; done = true;