mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-19 15:37:42 +01:00
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