mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-13 17:37:58 -04:00
server list: fix no connection error after refresh when first ping failed
This commit is contained in:
parent
de05416943
commit
6805326c03
@ -59,6 +59,7 @@ public class SocketNetwork implements Network {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void connect(ServerAddress address) {
|
public void connect(ServerAddress address) {
|
||||||
|
lastException = null;
|
||||||
// check if we are already connected or try to connect
|
// check if we are already connected or try to connect
|
||||||
if (connection.isConnected() || connection.getConnectionState() == ConnectionStates.CONNECTING) {
|
if (connection.isConnected() || connection.getConnectionState() == ConnectionStates.CONNECTING) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user