diff options
Diffstat (limited to 'shared/utils')
-rw-r--r-- | shared/utils/server/servers.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/shared/utils/server/servers.ts b/shared/utils/server/servers.ts index 1e9c83c72..cb57e0a69 100644 --- a/shared/utils/server/servers.ts +++ b/shared/utils/server/servers.ts | |||
@@ -146,7 +146,11 @@ function runServer (serverNumber: number, configOverride?: Object, args = []) { | |||
146 | 146 | ||
147 | server.app.stdout.removeListener('data', onStdout) | 147 | server.app.stdout.removeListener('data', onStdout) |
148 | 148 | ||
149 | process.on('exit', () => process.kill(server.app.pid)) | 149 | process.on('exit', () => { |
150 | try { | ||
151 | process.kill(server.app.pid) | ||
152 | } catch { /* empty */ } | ||
153 | }) | ||
150 | 154 | ||
151 | res(server) | 155 | res(server) |
152 | }) | 156 | }) |