@platformatic/watt-admin 0.6.0-alpha.6 → 0.6.0-alpha.7

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.
Files changed (2) hide show
  1. package/lib/start.js +4 -0
  2. package/package.json +1 -1
package/lib/start.js CHANGED
@@ -67,9 +67,13 @@ export async function start (client, selectedRuntime) {
67
67
  }
68
68
 
69
69
  process.once('SIGINT', async () => {
70
+ process.on('SIGINT', () => {
71
+ // we ignore future signals to avoid double shutdown
72
+ })
70
73
  clearTimeout(recordTimeout)
71
74
  await recordMetrics(entrypointUrl)
72
75
  await shutdown()
76
+ process.removeAllListeners('SIGINT')
73
77
  })
74
78
 
75
79
  const { statusCode, body } = await requestRecord('start')
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@platformatic/watt-admin",
4
- "version": "0.6.0-alpha.6",
4
+ "version": "0.6.0-alpha.7",
5
5
  "scripts": {
6
6
  "prepublishOnly": "npm run clean && npm run build",
7
7
  "dev": "wattpm dev",