Skip to content

Commit

Permalink
fix(engineio/ws): remove unecessary panic message when receiving unex…
Browse files Browse the repository at this point in the history
…pected ws packets (#320)
  • Loading branch information
Totodore authored May 8, 2024
1 parent 94f4646 commit b9dedf4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engineioxide/src/transport/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ where
Ok(())
}
Message::Close(_) => break,
_ => panic!("[sid={}] unexpected ws message", socket.id),
_ => {
#[cfg(feature = "tracing")]
tracing::debug!("[sid={}] unexpected ws message", socket.id);
Ok(())
}
}?
}
Ok(())
Expand Down

0 comments on commit b9dedf4

Please sign in to comment.