diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-02-25 16:31:33 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-02-25 16:31:33 +0000 |
commit | 3cfb8ca06f6d21ea4969ac365737fc388cfa02ef (patch) | |
tree | 2652c8621dd664849faac9ea4a8e09dd5a29be7d /lib/network | |
parent | 34db3e0ede5ca29189fc3a1bde94af3af9c9e7d1 (diff) | |
download | drakx-net-3cfb8ca06f6d21ea4969ac365737fc388cfa02ef.tar drakx-net-3cfb8ca06f6d21ea4969ac365737fc388cfa02ef.tar.gz drakx-net-3cfb8ca06f6d21ea4969ac365737fc388cfa02ef.tar.bz2 drakx-net-3cfb8ca06f6d21ea4969ac365737fc388cfa02ef.tar.xz drakx-net-3cfb8ca06f6d21ea4969ac365737fc388cfa02ef.zip |
support more interface types in dbus event handlers for status
Diffstat (limited to 'lib/network')
-rw-r--r-- | lib/network/connection_manager.pm | 7 |
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') { |