diff --git a/.eslintrc.js b/.eslintrc.js index bd522ab..8b299a8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -14,7 +14,7 @@ module.exports = { SharedArrayBuffer: 'readonly', }, parserOptions: { - ecmaVersion: 2019, + ecmaVersion: 2020, }, rules: {}, } diff --git a/index.js b/index.js index 08bd543..313b41c 100644 --- a/index.js +++ b/index.js @@ -118,11 +118,11 @@ exports.init = function (ssb, config) { } function _pause() { - drainGraphStream.abort() + drainGraphStream?.abort() drainGraphStream = null - drainHopStream.abort() + drainHopStream?.abort() drainHopStream = null - groupMemberStream.abort() + groupMemberStream?.abort() groupMemberStream = null }