Complete the teardown future anyway

This commit is contained in:
Andrew Steinborn 2020-06-12 07:27:51 -04:00
parent 8a6e77689b
commit 0109f4477a

View File

@ -595,6 +595,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
if (!this.explicitlyDisconnected) {
server.getEventManager().fire(new DisconnectEvent(this, !isConnected))
.thenRun(() -> this.teardownFuture.complete(null));
} else {
this.teardownFuture.complete(null);
}
}