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);
|
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());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user