Skip to content

Commit e416a64

Browse files
chore: add unref call
1 parent 246bb77 commit e416a64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/conditional.module.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ export class ConditionalModule {
1414
options?: { timeout: number },
1515
) {
1616
const { timeout = 5000 } = options ?? {};
17+
1718
const timer = setTimeout(() => {
1819
throw new Error(
1920
`Nest was not able to resolve the config variables within ${timeout} milliseconds. Bause of this, the ConditionalModule was not able to determine if ${module.toString()} should be registered or not`,
2021
);
2122
}, timeout);
23+
timer.unref();
24+
2225
const returnModule: Required<
2326
Pick<DynamicModule, 'module' | 'imports' | 'exports'>
2427
> = { module: ConditionalModule, imports: [], exports: [] };

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy