Skip to content

Commit 0727475

Browse files
committed
Remove the handler of SIGINT event
1 parent 1627629 commit 0727475

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/core/Board.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,13 @@
160160
}
161161

162162
function cleanup() {
163-
this.disconnect(function () {
164-
if (typeof exports !== 'undefined') {
165-
process.exit();
166-
}
167-
});
163+
this.disconnect();
168164
}
169165

170166
function attachCleanup(self) {
171167
if (typeof exports === 'undefined') {
172168
window.addEventListener('beforeunload', self._cleanupHandler);
173169
} else {
174-
process.addListener('SIGINT', self._cleanupHandler);
175170
process.addListener('uncaughtException', self._cleanupHandler);
176171
}
177172
}
@@ -180,7 +175,6 @@
180175
if (typeof exports === 'undefined') {
181176
window.removeEventListener('beforeunload', self._cleanupHandler);
182177
} else {
183-
process.removeListener('SIGINT', self._cleanupHandler);
184178
process.removeListener('uncaughtException', self._cleanupHandler);
185179
}
186180
}

0 commit comments

Comments
 (0)