diff options
Diffstat (limited to 'dynamite.c')
-rw-r--r-- | dynamite.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -291,7 +291,9 @@ void cPluginDynamite::Stop(void) void cPluginDynamite::Housekeeping(void) { int now = time(NULL); - if ((lastHousekeeping == 0) || ((now - lastHousekeeping) > 60)) { + if (lastHousekeeping == 0) + lastHousekeeping = now; + else if ((now - lastHousekeeping) > 60) { cDynamicDevice::AutoIdle(); lastHousekeeping = now; } |