fix(replay/plugin): still check if recorder exists

This partially backs out commit f77aea28d1.
This commit is contained in:
2025-03-11 19:31:41 -04:00
parent 9b6991ae80
commit 15cd2e673e
2 changed files with 25 additions and 15 deletions

View File

@@ -66,6 +66,7 @@ impl Recorder {
}
pub fn save_raw_packet(&mut self, raw_packet: &[u8]) -> Result<()> {
println!("{}", raw_packet.len());
let mut data = Vec::with_capacity(raw_packet.len() + 8);
data.extend(&TryInto::<u32>::try_into(self.start.elapsed().as_millis())?.to_be_bytes());
data.extend(&TryInto::<u32>::try_into(raw_packet.len())?.to_be_bytes());