Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-06 00:00:47 +01:00
Fix bug where connect() wouldn't reset in-flight connections
Dieser Commit ist enthalten in:
Ursprung
e476ee815a
Commit
648c149872
@ -746,8 +746,10 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
|||||||
if (status != null && !status.isSafe()) {
|
if (status != null && !status.isSafe()) {
|
||||||
// If it's not safe to continue the connection we need to shut it down.
|
// If it's not safe to continue the connection we need to shut it down.
|
||||||
handleConnectionException(status.getAttemptedConnection(), throwable, true);
|
handleConnectionException(status.getAttemptedConnection(), throwable, true);
|
||||||
|
} else if ((status != null && !status.isSuccessful())) {
|
||||||
|
resetInFlightConnection();
|
||||||
}
|
}
|
||||||
})
|
}, minecraftConnection.eventLoop())
|
||||||
.thenApply(x -> x);
|
.thenApply(x -> x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren