Skip to content

Commit

Permalink
Make server._background stop when dht destroyed (#156)
Browse files Browse the repository at this point in the history
* Make server._background stop when dht destroyed

* Undo unneeded cehcks
  • Loading branch information
HDegroote authored Jan 2, 2024
1 parent 5350885 commit 5d2c8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/announcer.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module.exports = class Announcer {
}

async _background () {
while (!this.stopped) {
while (!this.dht.destroyed && !this.stopped) {
try {
this._refreshing = false

Expand Down

0 comments on commit 5d2c8dc

Please sign in to comment.