mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 22:47:42 +01:00
Make sure this runs on the event loop.
This commit is contained in:
@@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user