summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-23 18:20:47 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-23 18:20:47 +0000
commitac035439e8e95a7e53dd174f1aae7f69c573eb6d (patch)
treed973d4ba0cc52ffee0cf03a109d4fbed8b544121
parent459a7f7181334cecd7c04153a9120e14cd14e033 (diff)
downloadmgaonline-ac035439e8e95a7e53dd174f1aae7f69c573eb6d.tar
mgaonline-ac035439e8e95a7e53dd174f1aae7f69c573eb6d.tar.gz
mgaonline-ac035439e8e95a7e53dd174f1aae7f69c573eb6d.tar.bz2
mgaonline-ac035439e8e95a7e53dd174f1aae7f69c573eb6d.tar.xz
mgaonline-ac035439e8e95a7e53dd174f1aae7f69c573eb6d.zip
(setup_cyclic_check) skip the first check (aka wait 3hour)
-rwxr-xr-xmdkapplet6
1 files changed, 6 insertions, 0 deletions
diff --git a/mdkapplet b/mdkapplet
index bb81f246..c257a9c2 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -496,6 +496,12 @@ sub setup_cyclic_check() {
1;
});
$timeout = Glib::Timeout->add($config{UPDATE_FREQUENCY}*1000, sub {
+ my $first_run if 0;
+ if (!$first_run) {
+ $first_run = 1;
+ return 1;
+ }
+
checkUpdates();
1;
});