summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-05 00:47:09 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-05 00:47:09 +0000
commit0bc7b7a60fa2fc6171e322f88e7dfe715bffdc5e (patch)
tree41cdb028af350f997702ed115f5f451a1bc02aa8 /mdkapplet
parent2592cbb477caf460d989272089dad05fc89caedb (diff)
downloadmgaonline-0bc7b7a60fa2fc6171e322f88e7dfe715bffdc5e.tar
mgaonline-0bc7b7a60fa2fc6171e322f88e7dfe715bffdc5e.tar.gz
mgaonline-0bc7b7a60fa2fc6171e322f88e7dfe715bffdc5e.tar.bz2
mgaonline-0bc7b7a60fa2fc6171e322f88e7dfe715bffdc5e.tar.xz
mgaonline-0bc7b7a60fa2fc6171e322f88e7dfe715bffdc5e.zip
(setup_cyclic_check) check more often for network (#37701, #38004)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 18f042ab..fe46df81 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -57,7 +57,7 @@ my $in = interactive->vnew('');
ugtk2::add_icon_path("/usr/share/mdkonline/pixmaps/");
my $online_site = "http://www.mandrivalinux.com/";
-my ($menu, $timeout, $state_global);
+my ($menu, $timeout, $network_timeout, $state_global);
my $localdir = "$ENV{HOME}/.MdkOnline";
my $localfile = "$localdir/mdkonline";
@@ -396,13 +396,13 @@ sub okState() { logIt(N_("System is up-to-date\n")); go2State('okay') }
sub setup_cyclic_check() {
+ $network_timeout = Glib::Timeout->add(2000, sub { checkNetwork(); 1 });
$timeout = Glib::Timeout->add($config{UPDATE_FREQUENCY}*1000, sub {
my $first_run if 0;
if (!$first_run) {
$first_run = 1;
return 1;
}
- checkNetwork();
checkUpdates();
1;
});
@@ -534,5 +534,6 @@ LASTCHECK=$date
sub mainQuit() {
# setAutoStart('FALSE');
Glib::Source->remove($timeout) if $timeout;
+ Glib::Source->remove($network_timeout) if $network_timeout;
Gtk2->main_quit;
}