refactor: try removing gc_stop

This used to cause deadlocks, but it's been a while with many things
rewritten. Let's try enabling it again to see if any issues surface.
Performance should increase as this was called on every event (packet?).
This commit is contained in:
Ryan 2025-02-23 17:19:26 -05:00
parent 9b0f8ec406
commit d633820d19
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

@ -15,8 +15,6 @@ use tokio::net::TcpListener;
#[allow(clippy::too_many_lines)]
pub async fn handle_event(client: Client, event: Event, state: State) -> anyhow::Result<()> {
state.lua.gc_stop();
match event {
Event::AddPlayer(player_info) => {
call_listeners(&state, "add_player", Player::from(player_info)).await;