Make sure this runs on the event loop.

This commit is contained in:
Andrew Steinborn 2020-05-25 12:08:24 -04:00
parent 942e2f2e1a
commit ec1fc3944d

View File

@ -758,7 +758,7 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
ConnectedPlayer.this, server); ConnectedPlayer.this, server);
connectionInFlight = con; connectionInFlight = con;
return con.connect().whenCompleteAsync((result, throwable) -> return con.connect().whenCompleteAsync((result, throwable) ->
this.cleanupIfRequired(con)); this.cleanupIfRequired(con), connection.eventLoop());
}, connection.eventLoop()); }, connection.eventLoop());
}); });
} }