summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet7
2 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 0c8bac28..dcf537eb 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
- mdkapplet:
o do not check for network while checking for updates
o do not skip first RPM check (change made in 2.16 in march 2007)
+ o check for network just before first check
Version 2.38 - 20 March 2008, Thierry Vignaud
diff --git a/mdkapplet b/mdkapplet
index 68df2e0a..369c9979 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -223,7 +223,12 @@ shouldStart() or die "$localfile should be set to TRUE: please use --force or -f
go2State('delayed');
gtkflush();
-Glib::Timeout->add($config{FIRST_CHECK_DELAY}, sub { checkUpdates(); 0 });
+Glib::Timeout->add($config{FIRST_CHECK_DELAY}, sub {
+ # perform a test after initial delay:
+ checkNetwork();
+ checkUpdates();
+ 0;
+ });
setup_cyclic_check();