@vpalmisano/webrtcperf 4.8.6 → 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.6",
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()
package/src/stats.ts CHANGED
@@ -613,7 +613,7 @@ export class Stats extends events.EventEmitter {
613
613
  'trackId',
614
614
  ...this.statsNames,
615
615
  ])
616
- this.detailedStatsSummaryWriter = new StatsWriter(this.detailedStatsPath.replace(/\.(.+)$/, '-summary.$1'), [
616
+ this.detailedStatsSummaryWriter = new StatsWriter(this.detailedStatsPath.replace(/\.([^.]+)$/, '-summary.$1'), [
617
617
  'participantName',
618
618
  'trackId',
619
619
  ...this.statsNames,