We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13d51cf commit 26d9cf9Copy full SHA for 26d9cf9
1 file changed
js/app.js
@@ -328,6 +328,16 @@ function App () {
328
await this.stop();
329
process.exit(0);
330
});
331
+
332
+ function blockingSleep(ms) {
333
+ const int32 = new Int32Array(new SharedArrayBuffer(4));
334
+ Atomics.wait(int32, 0, 0, ms);
335
+ };
336
337
+ process.on("exit", () => {
338
+ // wait before exiting so that child processes (e.g. systeminformation) have some additional time
339
+ blockingSleep(1000);
340
+ });
341
}
342
343
module.exports = new App();
0 commit comments