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:
parent
9b0f8ec406
commit
d633820d19
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user