reconnect account after adding to ConnectionPool
This commit is contained in:
parent
6983aedddc
commit
da65960fd1
|
@ -78,6 +78,7 @@ public class ConnectionPool {
|
||||||
for (final Account account : added) {
|
for (final Account account : added) {
|
||||||
final XmppConnection connection = this.instantiate(context, account);
|
final XmppConnection connection = this.instantiate(context, account);
|
||||||
connection.setOnStatusChangedListener(this::onStatusChanged);
|
connection.setOnStatusChangedListener(this::onStatusChanged);
|
||||||
|
reconnectAccount(connection);
|
||||||
}
|
}
|
||||||
for (final Account account : removed) {
|
for (final Account account : removed) {
|
||||||
final Optional<XmppConnection> connectionOptional =
|
final Optional<XmppConnection> connectionOptional =
|
||||||
|
|
Loading…
Reference in a new issue