Also disconnect unauthenticated connections
This commit is contained in:
parent
83db8fe404
commit
7e1c9a7bdc
|
@ -169,10 +169,8 @@ public class MercuryConnectionManager {
|
|||
}
|
||||
|
||||
private void connectionDisconnect(MercuryConnection connection) {
|
||||
if (connection.getConnection().isAuthenticated()) {
|
||||
((AbstractXMPPConnection) connection.getConnection()).disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
private void removeConnection(MercuryConnection connection) {
|
||||
LOGGER.log(Level.FINER, "Remove Connection: " + connection.getAccount().getAddress());
|
||||
|
|
Loading…
Reference in New Issue