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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user