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 e10c70aCopy full SHA for e10c70a
1 file changed
js/app.js
@@ -328,6 +328,20 @@ function App () {
328
await this.stop();
329
process.exit(0);
330
});
331
+
332
+ /**
333
+ *
334
+ * @param {number} ms milliseconds to wait
335
+ */
336
+ function blockingSleep (ms) {
337
+ const int32 = new Int32Array(new SharedArrayBuffer(4));
338
+ Atomics.wait(int32, 0, 0, ms);
339
+ }
340
341
+ process.on("exit", () => {
342
+ // wait before exiting so that child processes (e.g. systeminformation) have some additional time
343
+ blockingSleep(1000);
344
+ });
345
}
346
347
module.exports = new App();
0 commit comments