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';
2424
2525import { readFile , checkAccess , writeFile , ensureDirectoryExists } from './util/fs' ;
2626
27- import { registerShutdownHandler , shutdown } from './shutdown' ;
27+ import { addShutdownHandler , registerShutdownHandler , shutdown } from './shutdown' ;
2828import { getTimeToCertExpiry , parseCert } from './certificates' ;
2929
3030import {
@@ -219,6 +219,8 @@ export async function runHTK(options: {
219219 host : '127.0.0.1'
220220 } ) ;
221221
222+ addShutdownHandler ( ( ) => standalone . stop ( ) ) ;
223+
222224 const standaloneSetupTime = Date . now ( ) ;
223225 console . log ( 'Standalone server started in' , standaloneSetupTime - certSetupTime , 'ms' ) ;
224226
You can’t perform that action at this time.
0 commit comments