summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/network/connection_manager.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index fe1420f..4424bc7 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -454,7 +454,12 @@ sub setup_dbus_handlers {
print "got connection status event: $_status $interface\n";
my $cmanager = find { $_->{connection}->get_interface eq $interface } @$cmanagers
or return;
- $cmanager->update_networks;
+ #- FIXME: factorize in update_on_status_change() and check why update_networks() calls update_on_status_change()
+ if ($cmanager->{connection}->can('get_networks') && !$cmanager->{connection}->network_scan_is_slow) {
+ $cmanager->update_networks;
+ } else {
+ $cmanager->network::connection_manager::update_on_status_change;
+ }
}
}
if ($msg->get_interface eq 'com.mandriva.monitoring.wireless' && $msg->get_member eq 'Event') {