mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-01-06 14:24:41 +08:00
Fix bug where connect() wouldn't reset in-flight connections
This commit is contained in:
parent
7c2cbdbf1f
commit
c64d16326c
@ -747,8 +747,10 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
||||
if (status != null && !status.isSafe()) {
|
||||
// If it's not safe to continue the connection we need to shut it down.
|
||||
handleConnectionException(status.getAttemptedConnection(), throwable, true);
|
||||
} else if ((status != null && !status.isSuccessful())) {
|
||||
resetInFlightConnection();
|
||||
}
|
||||
})
|
||||
}, minecraftConnection.eventLoop())
|
||||
.thenApply(x -> x);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user