File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import { IS_PROD_BUILD, MOCKTTP_ALLOWED_ORIGINS } from './constants';
24
24
25
25
import { readFile , checkAccess , writeFile , ensureDirectoryExists } from './util/fs' ;
26
26
27
- import { registerShutdownHandler , shutdown } from './shutdown' ;
27
+ import { addShutdownHandler , registerShutdownHandler , shutdown } from './shutdown' ;
28
28
import { getTimeToCertExpiry , parseCert } from './certificates' ;
29
29
30
30
import {
@@ -219,6 +219,8 @@ export async function runHTK(options: {
219
219
host : '127.0.0.1'
220
220
} ) ;
221
221
222
+ addShutdownHandler ( ( ) => standalone . stop ( ) ) ;
223
+
222
224
const standaloneSetupTime = Date . now ( ) ;
223
225
console . log ( 'Standalone server started in' , standaloneSetupTime - certSetupTime , 'ms' ) ;
224
226
You can’t perform that action at this time.
0 commit comments