muaddib-scanner 2.10.27 → 2.10.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/monitor/daemon.js +2 -2
package/package.json
CHANGED
package/src/monitor/daemon.js
CHANGED
|
@@ -165,7 +165,7 @@ async function startMonitor(options, stats, dailyAlerts, recentlyScanned, downlo
|
|
|
165
165
|
process.on('SIGTERM', () => gracefulShutdown('SIGTERM'));
|
|
166
166
|
|
|
167
167
|
// Initial poll + scan
|
|
168
|
-
await poll(scanQueue, stats);
|
|
168
|
+
await poll(state, scanQueue, stats);
|
|
169
169
|
saveState(state, stats);
|
|
170
170
|
await processQueue(scanQueue, stats, dailyAlerts, recentlyScanned, downloadsCache, sandboxAvailableRef.value);
|
|
171
171
|
|
|
@@ -173,7 +173,7 @@ async function startMonitor(options, stats, dailyAlerts, recentlyScanned, downlo
|
|
|
173
173
|
while (running) {
|
|
174
174
|
await sleep(POLL_INTERVAL);
|
|
175
175
|
if (!running) break;
|
|
176
|
-
await poll(scanQueue, stats);
|
|
176
|
+
await poll(state, scanQueue, stats);
|
|
177
177
|
saveState(state, stats);
|
|
178
178
|
await processQueue(scanQueue, stats, dailyAlerts, recentlyScanned, downloadsCache, sandboxAvailableRef.value);
|
|
179
179
|
|