Skip to content

Commit

Permalink
[wrong:server] kill the process after being pinged
Browse files Browse the repository at this point in the history
  • Loading branch information
grqz authored Sep 15, 2024
1 parent 94e9ddb commit e54276b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
somethingthatkeepsthescriptfromrunningnormallyimport { SessionManager } from "./session_manager";
import { SessionManager } from "./session_manager";
import { VERSION } from "./version";
import { Command } from "@commander-js/extra-typings";
import express from "express";
Expand Down Expand Up @@ -70,4 +70,5 @@ httpServer.get("/ping", async (request, response) => {
server_uptime: process.uptime(),
version: VERSION,
});
process.kill(process.pid);
});

0 comments on commit e54276b

Please sign in to comment.