fix: close API server on shutdown to prevent EADDRINUSE (#477)
Co-authored-by: Dustin Doan <dustin@myhealthspan.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -819,6 +819,7 @@ async function main() {
|
||||
services.cronServices.forEach(c => c.stop());
|
||||
services.pollingServices.forEach(p => p.stop());
|
||||
await gateway.stop();
|
||||
apiServer.close();
|
||||
process.exit(0);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user