Skip to content

Commit

Permalink
Don't throw on additional pauses
Browse files Browse the repository at this point in the history
  • Loading branch information
Powersource committed Feb 2, 2024
1 parent aaf8849 commit f058513
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2019,
ecmaVersion: 2020,
},
rules: {},
}
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit f058513

Please sign in to comment.