mythix 4.0.2 → 4.0.3

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.
@@ -160,9 +160,9 @@ export class Application {
160
160
  }
161
161
 
162
162
  bindToProcessSignals() {
163
- process.on('SIGINT', this.stop.bind(this));
164
- process.on('SIGTERM', this.stop.bind(this));
165
- process.on('SIGHUP', this.stop.bind(this));
163
+ process.on('SIGINT', () => this.stop(0));
164
+ process.on('SIGTERM', () => this.stop(0));
165
+ process.on('SIGHUP', () => this.stop(0));
166
166
  }
167
167
 
168
168
  getOptions() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mythix",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Mythix is a NodeJS web-app framework",
5
5
  "main": "lib/index.mjs",
6
6
  "type": "module",