MCPcopy
hub / github.com/modstart-lib/aigcpanel / stop

Function stop

electron/mapi/httpserver/main.ts:771–786  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

769};
770
771const stop = async (): Promise<void> => {
772 return new Promise((resolve) => {
773 if (!server) {
774 isRunning = false;
775 runningPort = 0;
776 resolve();
777 return;
778 }
779 server.close(() => {
780 server = null;
781 isRunning = false;
782 runningPort = 0;
783 resolve();
784 });
785 });
786};
787
788const status = () => ({
789 running: isRunning,

Callers 2

startFunction · 0.70
main.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected