Skip to content

Commit

Permalink
fix not start scanning when packet logs is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
Chleba committed Apr 24, 2024
1 parent efe5760 commit 0a568b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ impl Component for Discovery {
}
// -- Scan CIDR
if let Action::ScanCidr = action {
if self.active_interface.is_some() && !self.is_scanning {
if self.active_interface.is_some() && !self.is_scanning && !self.show_packets {
self.scan();
}
}
Expand Down

0 comments on commit 0a568b0

Please sign in to comment.