From 62834ff87581af7ec1d21a598a2a2440b25463a5 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 20 Sep 2004 05:51:14 +0000 Subject: remove connection time timer if connection fails (fix #11590) --- perl-install/standalone/net_monitor | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone/net_monitor') diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor index 0cc59aed2..f5f2031df 100755 --- a/perl-install/standalone/net_monitor +++ b/perl-install/standalone/net_monitor @@ -192,7 +192,7 @@ sub connection() { my ($sec, $min, $hour) = gmtime(time() - $c_time); my $e = sprintf("%02d:%02d:%02d", $hour, $min, $sec); $label_ct->set_label($e); 1 }) - } else { Glib::Source->remove($ct_tag) } + } my $nb_point = 1; $first = 1; @@ -235,6 +235,8 @@ sub connection() { N("Connection complete.") : N("Connection failed.\nVerify your configuration in the Mandrakelinux Control Center.")) ); + # remove the connection time timer if connection is down or failed + $isconnected or Glib::Source->remove($ct_tag); my $delay = 1000; # keep the message displayed longer if there is a problem. if ($isconnected == $wasconnected) { $delay = 5000 } -- cgit v1.2.1