summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;