Finalize log stream before exiting process
Reviewed By: antonk52 Differential Revision: D51229230 fbshipit-source-id: 0e7f657a170eb8602ade9abf1db1976c5b51dc3f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0cbd640e5c
commit
a400eb2872
@@ -29,6 +29,7 @@ import {URLSearchParams} from 'url';
|
||||
import {tracker} from '../tracker';
|
||||
import {getFlipperServerConfig} from '../FlipperServerConfig';
|
||||
import {performance} from 'perf_hooks';
|
||||
import {processExit} from '../utils/processExit';
|
||||
|
||||
const safe = (f: () => void) => {
|
||||
try {
|
||||
@@ -266,7 +267,7 @@ export function attachSocketServer(
|
||||
console.info(
|
||||
'[flipper-server] Shutdown as no clients are currently connected',
|
||||
);
|
||||
process.exit(0);
|
||||
processExit(0);
|
||||
}
|
||||
}, FIVE_HOURS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user