Skip to content

Commit

Permalink
Merge pull request #22 from ssbc/throw-pause
Browse files Browse the repository at this point in the history
Don't throw on additional pauses/pausing before starting
  • Loading branch information
Powersource authored Feb 5, 2024
2 parents aaf8849 + f058513 commit cd8af7a
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 cd8af7a

Please sign in to comment.