From 9eb77f6bb4e1f779feca9b4585405f91c000a87c Mon Sep 17 00:00:00 2001 From: Adam Lebsack Date: Wed, 12 Apr 2017 13:49:01 +0200 Subject: [PATCH] Removed superfluous process handlers --- lib/extensions.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/extensions.js b/lib/extensions.js index 727b910a..840b5f6f 100644 --- a/lib/extensions.js +++ b/lib/extensions.js @@ -52,16 +52,6 @@ module.exports = function(realmConstructor) { if (realmConstructor.Sync.cleanup) { // FIXME: DOES THIS WORK ON BOTH NODE AND REACT NATIVE? process.on('exit', realmConstructor.Sync.cleanup); - process.on('SIGINT', function () { - realmConstructor.Sync.cleanup(); - process.exit(2); - }); - process.on('uncaughtException', function(e) { - realmConstructor.Sync.cleanup(); - /* eslint-disable no-console */ - console.log(e.stack); - process.exit(99); - }); } setConstructorOnPrototype(realmConstructor.Sync.User);