Complete the teardown future anyway
This commit is contained in:
@@ -595,6 +595,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
|||||||
if (!this.explicitlyDisconnected) {
|
if (!this.explicitlyDisconnected) {
|
||||||
server.getEventManager().fire(new DisconnectEvent(this, !isConnected))
|
server.getEventManager().fire(new DisconnectEvent(this, !isConnected))
|
||||||
.thenRun(() -> this.teardownFuture.complete(null));
|
.thenRun(() -> this.teardownFuture.complete(null));
|
||||||
|
} else {
|
||||||
|
this.teardownFuture.complete(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user