Also reset when an exception is thrown.

This commit is contained in:
Andrew Steinborn
2020-05-25 11:49:45 -04:00
parent 64c16e61d2
commit 74ff56cbc9

View File

@@ -772,6 +772,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
} else if (status.getStatus() == Status.SERVER_DISCONNECTED) {
resetInFlightConnection();
}
} else if (throwable != null) {
resetInFlightConnection();
}
}, connection.eventLoop())
.thenApply(x -> x);