diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-02-25 16:19:08 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-02-25 16:19:08 +0000 |
commit | 9b1651fbddd43b3159a9abf535e6660bb2ff7503 (patch) | |
tree | 10512ed935b58d48c82a90e4e51d8d4a74132001 /lib/network | |
parent | 8fad3dcf3430caf51b63b321d63b9c0261e484c5 (diff) | |
download | drakx-net-9b1651fbddd43b3159a9abf535e6660bb2ff7503.tar drakx-net-9b1651fbddd43b3159a9abf535e6660bb2ff7503.tar.gz drakx-net-9b1651fbddd43b3159a9abf535e6660bb2ff7503.tar.bz2 drakx-net-9b1651fbddd43b3159a9abf535e6660bb2ff7503.tar.xz drakx-net-9b1651fbddd43b3159a9abf535e6660bb2ff7503.zip |
find cmanager for current interface
Diffstat (limited to 'lib/network')
-rw-r--r-- | lib/network/connection_manager.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm index 3a87cd9..46d2ea7 100644 --- a/lib/network/connection_manager.pm +++ b/lib/network/connection_manager.pm @@ -448,7 +448,9 @@ sub setup_dbus_handlers { my $member = $msg->get_member; my $message = _get_network_event_message($connections, $member, $msg->get_args_list); $on_network_event->($message) if $on_network_event && $message; - $droam->update_networks if $member eq 'status'; + my $cmanager = find { $_->{connection}->get_interface eq $interface } @$cmanagers + or return; + $cmanager->update_networks if $member eq 'status'; }); $dbus->{connection}->add_match("type='signal',interface='com.mandriva.network'"); dbus_object::set_gtk2_watch_helper($dbus); |