summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-25 16:28:00 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-25 16:28:00 +0000
commit7330283c9eefbec704044803160c75e14efc2db2 (patch)
tree41ea6af7afb2b05a94500fd1d0d14b0565e7dc01 /lib/network
parent357a13c8cfcb793b57d732a4c3684c081c952df8 (diff)
downloaddrakx-net-7330283c9eefbec704044803160c75e14efc2db2.tar
drakx-net-7330283c9eefbec704044803160c75e14efc2db2.tar.gz
drakx-net-7330283c9eefbec704044803160c75e14efc2db2.tar.bz2
drakx-net-7330283c9eefbec704044803160c75e14efc2db2.tar.xz
drakx-net-7330283c9eefbec704044803160c75e14efc2db2.zip
fix getting interface from status message
Diffstat (limited to 'lib/network')
-rw-r--r--lib/network/connection_manager.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index a038838..a329437 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -449,9 +449,12 @@ 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;
- my $cmanager = find { $_->{connection}->get_interface eq $interface } @$cmanagers
- or return;
- $cmanager->update_networks if $member eq 'status';
+ if ($member eq 'status') {
+ my ($status, $interface) = $msg->get_args_list;
+ my $cmanager = find { $_->{connection}->get_interface eq $interface } @$cmanagers
+ or return;
+ $cmanager->update_networks;
+ }
}
if ($msg->get_interface eq 'com.mandriva.monitoring.wireless' && $msg->get_member eq 'Event') {
my ($event, $interface) = $msg->get_args_list;