mirror of
https://github.com/pockethost/pockethost.git
synced 2025-07-06 04:42:29 +00:00
fix: undefined value in TimerManager
This commit is contained in:
parent
4f43f9fa54
commit
cfd4b8f73a
@ -1,4 +1,4 @@
|
||||
import { forEach } from '@s-libs/micro-dash'
|
||||
import { forEach, values } from '@s-libs/micro-dash'
|
||||
import { logger } from './Logger'
|
||||
|
||||
export type UnixTimestampMs = number
|
||||
@ -38,7 +38,7 @@ export const createTimerManager = (config: TimeManagerConfig) => {
|
||||
const shutdown = () => {
|
||||
isShutDown = true
|
||||
|
||||
dbg(`Canceling ${cleanups.length} timers`)
|
||||
dbg(`Canceling ${values(cleanups.length).length} timers`)
|
||||
forEach(cleanups, (c) => c())
|
||||
dbg(`done`, cleanups)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user