update
This commit is contained in:
@ -449,6 +449,11 @@ export class AdaptiveSmtpLogger {
|
||||
this.aggregationTimer = setInterval(() => {
|
||||
this.flushAggregatedEntries();
|
||||
}, this.config.aggregationInterval);
|
||||
|
||||
// Unref the timer so it doesn't keep the process alive
|
||||
if (this.aggregationTimer && typeof this.aggregationTimer.unref === 'function') {
|
||||
this.aggregationTimer.unref();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user