diff --git a/src/network.h b/src/network.h index 4db90cb..564e991 100644 --- a/src/network.h +++ b/src/network.h @@ -9,6 +9,7 @@ network.h file... for everything what have to do with the network stuff #define PKG_RESENDCACHE_SIZE (64*1024) #define PKG_IN_INDEX_NUM 256 #define RESENDCACHE_TIMEOUT 400 +#define RESENDCACHE_TIMEOUT_MENU 3000 #define RESENDCACHE_RETRY 10 #define DOWNLOAD_TIMEOUT 2000 #define DYN_PKG_MAX_MISSING 4 diff --git a/src/pkgcache.c b/src/pkgcache.c index a65d9da..cbc9f9b 100644 --- a/src/pkgcache.c +++ b/src/pkgcache.c @@ -122,8 +122,8 @@ rscache_loop () { int len, pos, - timeout = RESENDCACHE_TIMEOUT; - + timeout; + if (bman.state==GS_running) timeout = RESENDCACHE_TIMEOUT; else timeout=RESENDCACHE_TIMEOUT_MENU; for (pos = 0; pos < resend_cache.fill && pos < PKG_RESENDCACHE_SIZE && pos >= 0;) { rscache_setpointer (pos);