mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Merge pull request #266 from jitsi/4.3
Disconnect BOSH client on shutdown and clear client instance.
This commit is contained in:
commit
e7372b05ea
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue