summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-25 16:32:47 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-25 16:32:47 +0000
commit81d183ec6559da0483ae596906de377c467cf094 (patch)
tree6c66f11da623eb29235f7ca67df4f28703076eb2 /lib/network
parent3cfb8ca06f6d21ea4969ac365737fc388cfa02ef (diff)
downloaddrakx-net-81d183ec6559da0483ae596906de377c467cf094.tar
drakx-net-81d183ec6559da0483ae596906de377c467cf094.tar.gz
drakx-net-81d183ec6559da0483ae596906de377c467cf094.tar.bz2
drakx-net-81d183ec6559da0483ae596906de377c467cf094.tar.xz
drakx-net-81d183ec6559da0483ae596906de377c467cf094.zip
handle interface up/failure status messages
Diffstat (limited to 'lib/network')
-rw-r--r--lib/network/connection_manager.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index 4424bc7..f859025 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -460,6 +460,14 @@ sub setup_dbus_handlers {
} else {
$cmanager->network::connection_manager::update_on_status_change;
}
+ if ($cmanager->{wait_message}) {
+ if ($status eq 'interface_up') {
+ undef $cmanager->{wait_message};
+ } elsif ($status =~ /_failure$/) {
+ undef $cmanager->{wait_message};
+ $cmanager->{in}->ask_warn(N("Error"), join("\n", N("Connection failed."), if_($message, $message)));
+ }
+ }
}
}
if ($msg->get_interface eq 'com.mandriva.monitoring.wireless' && $msg->get_member eq 'Event') {