server list: fix no connection error after refresh when first ping failed

This commit is contained in:
Bixilon 2020-10-22 21:56:51 +02:00
parent de05416943
commit 6805326c03
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -59,6 +59,7 @@ public class SocketNetwork implements Network {
@Override
public void connect(ServerAddress address) {
lastException = null;
// check if we are already connected or try to connect
if (connection.isConnected() || connection.getConnectionState() == ConnectionStates.CONNECTING) {
return;