Skip to content

Commit

Permalink
add QFT_HIDE_DROPS environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
TudbuT committed Aug 20, 2022
1 parent aa35f1b commit 74865e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl SafeReadWrite {
} else if id > self.packet_count_in as u16
&& (id - self.packet_count_in as u16) < 0xC000
{
if !is_catching_up {
if !is_catching_up && !env::var("QFT_HIDE_DROPS").is_ok() {
println!(
"\r\x1b[KA packet dropped: {} (got) is newer than {} (expected)",
&id,
Expand Down Expand Up @@ -185,7 +185,7 @@ impl SafeReadWrite {
}
if buf[2] == SafeReadWritePacket::ResendRequest as u8 {
let mut n = u16::from_be_bytes([buf[0], buf[1]]);
if !is_catching_up {
if !is_catching_up && !env::var("QFT_HIDE_DROPS").is_ok() {
println!("\r\x1b[KA packet dropped: {}", &n);
}
wait = true;
Expand Down

0 comments on commit 74865e3

Please sign in to comment.