refactor(network): only get info when there is an interface

pull/105/head
Alexis 2018-11-23 17:46:14 +01:00
parent f6c2a8d9b7
commit 686bc4828e
1 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,9 @@ void waybar::modules::Network::worker()
} }
} }
if (need_update) { if (need_update) {
getInfo(); if (ifid_ > 0) {
getInfo();
}
dp.emit(); dp.emit();
} }
}; };