()
| 514 | for (const line of pending.splice(0)) void handleLocally(line); |
| 515 | }; |
| 516 | const scheduleDaemonRetry = (): void => { |
| 517 | if (shuttingDown || retryTimer || retryBaseMs <= 0) return; |
| 518 | const delay = retryDelayMs; |
| 519 | retryDelayMs = Math.min(retryDelayMs * 2, retryMaxMs); |
| 520 | retryTimer = setTimeout(() => { retryTimer = null; void retryDaemon(); }, delay); |
| 521 | retryTimer.unref?.(); |
| 522 | }; |
| 523 | const retryDaemon = async (): Promise<void> => { |
| 524 | if (shuttingDown || daemonStatus !== 'failed') return; |
| 525 | // While a writing engine owns writer.pid no daemon can start (#2277). Hand |
no test coverage detected