@vpalmisano/webrtcperf 4.8.7 → 4.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vpalmisano/webrtcperf",
3
- "version": "4.8.7",
3
+ "version": "4.8.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/vpalmisano/webrtcperf.git"
package/src/app.ts CHANGED
@@ -14,6 +14,7 @@ import {
14
14
  logger,
15
15
  registerExitHandler,
16
16
  resolvePackagePath,
17
+ runExitHandlersNow,
17
18
  sleep,
18
19
  startRandomActivateAudio,
19
20
  stopRandomActivateAudio,
@@ -301,7 +302,12 @@ async function main(): Promise<void> {
301
302
  i++
302
303
  runNext()
303
304
  } else {
304
- process.exit(0)
305
+ runExitHandlersNow()
306
+ .then(() => process.exit(0))
307
+ .catch(err => {
308
+ log.error(`runExitHandlersNow error: ${(err as Error).stack}`)
309
+ process.exit(1)
310
+ })
305
311
  }
306
312
  })
307
313
  return application.start()