fix(replay/plugin): still check if recorder exists
This partially backs out commit f77aea28d1
.
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user