mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Fix for empty tree.
This commit is contained in:
parent
1a04dd646c
commit
82d2734d3f
@ -157,7 +157,9 @@ impl NetworkJson {
|
||||
/// have been made to the clone, and the clone is then copied back
|
||||
/// into the main structure.
|
||||
pub fn finish_update_cycle(&mut self, counting: NetworkJsonCounting) {
|
||||
self.nodes = counting.nodes;
|
||||
if !counting.nodes.is_empty() {
|
||||
self.nodes = counting.nodes;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user