Skip to content

Commit 866b8cb

Browse files
fix: packet tail read fail-safe
1 parent 1aa6c2b commit 866b8cb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/core/packet_data.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ impl WitcherPacketData {
179179
}
180180
}
181181
}
182+
constants::PACKET_TAIL => {
183+
// fail-safe against packet tail that sometimes gets sent in the payload for some reason
184+
break;
185+
}
182186
_ => return Err( format!("{}Unknown type bytes: {:?}", err, type_bytes) ),
183187
}
184188
}

0 commit comments

Comments
 (0)