Feat : Auto restart after crash
This commit is contained in:
1 parent
549223c8cf
commit
adae2605bf
31 files changed
+340
-189
No files matched your search
@@ -39,7 +39,9 @@ export async function GET() {
|
||||
controller.enqueue(encoder.encode(`data: ${JSON.stringify(stats)}\n\n`));
|
||||
} catch {
|
||||
state.closed = true;
|
||||
statsEmitter.off("update", state.send);
|
||||
statsEmitter.off("pending", state.sendPending);
|
||||
clearInterval(state.keepalive);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user