show the number of connections in connection manager

pull/4/head
Zlatin Balevsky 2019-05-31 06:40:33 +01:00
parent 5a2312f488
commit 59c0303fb8
1 changed files with 2 additions and 3 deletions

View File

@ -66,14 +66,13 @@ class MainFrameModel {
void onConnectionEvent(ConnectionEvent e) { void onConnectionEvent(ConnectionEvent e) {
runInsideUIAsync { runInsideUIAsync {
if (e.status == ConnectionAttemptStatus.SUCCESSFUL) connections = core.connectionManager.getConnections().size()
connections++
} }
} }
void onDisconnectionEvent(DisconnectionEvent e) { void onDisconnectionEvent(DisconnectionEvent e) {
runInsideUIAsync { runInsideUIAsync {
connections-- connections = core.connectionManager.getConnections().size()
} }
} }
} }