mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-01-06 14:24:41 +08:00
Make sure this runs on the event loop.
This commit is contained in:
parent
942e2f2e1a
commit
ec1fc3944d
@ -758,7 +758,7 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
||||
ConnectedPlayer.this, server);
|
||||
connectionInFlight = con;
|
||||
return con.connect().whenCompleteAsync((result, throwable) ->
|
||||
this.cleanupIfRequired(con));
|
||||
this.cleanupIfRequired(con), connection.eventLoop());
|
||||
}, connection.eventLoop());
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user