mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-18 10:33:14 +00:00
Removed superfluous process handlers
This commit is contained in:
parent
2ca08161f8
commit
9eb77f6bb4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user