()
| 124 | let lifetimeTimeoutHandle: ReturnType<typeof setTimeout> | undefined |
| 125 | |
| 126 | const cleanup = () => { |
| 127 | if (cleanedUp) return |
| 128 | cleanedUp = true |
| 129 | |
| 130 | if (lifetimeTimeoutHandle !== undefined) { |
| 131 | clearTimeout(lifetimeTimeoutHandle) |
| 132 | lifetimeTimeoutHandle = undefined |
| 133 | } |
| 134 | |
| 135 | router.serverSsr?.cleanup() |
| 136 | } |
| 137 | |
| 138 | const safeClose = () => { |
| 139 | if (isStreamClosed) return |
no test coverage detected