We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fc0f71 commit cb464a9Copy full SHA for cb464a9
src/eltrafico_main/gui.rs
@@ -85,6 +85,12 @@ fn build_ui(application: >k::Application) {
85
if !pid.is_empty() {
86
run!("pkexec pkill nethogs").expect("Error stopping nethogs");
87
}
88
+ // stop bandwhich
89
+ let pid = String::from_utf8(run!("pidof bandwhich").unwrap().stdout).unwrap();
90
+ if !pid.is_empty() {
91
+ run!("pkexec pkill bandwhich").expect("Error stopping bandwhich");
92
+ }
93
+
94
// stop tc thread
95
// tc will send a STOP msg back to the main thread so it can exit
96
writeln!(stdin_c.borrow_mut().as_mut().unwrap(), "{}", Message::Stop)
0 commit comments