1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 22:32:06 +01:00

Merge pull request #266 from jitsi/4.3

Disconnect BOSH client on shutdown and clear client instance.
This commit is contained in:
Florian Schmaus 2018-08-30 14:36:52 +02:00 committed by GitHub
commit e7372b05ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;