Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #14675 from brave/riastradh-tor-controlerrorbranches
Browse files Browse the repository at this point in the history
Fix some error branches in tor controller logic.
  • Loading branch information
bsclifton authored Jul 10, 2018
2 parents 811328e + f0519b0 commit e680e1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/tor.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class TorDaemon extends EventEmitter {
return
}
if (this._control) {
this._control.close()
this._control.destroy()
}
}

Expand Down Expand Up @@ -962,7 +962,7 @@ class TorControl extends EventEmitter {
const [, callback] = this._cmdq.shift()
callback(err, null, null)
}
assert(this._closing === 0)
setImmediate(() => assert(this._closing === 0))
}

/**
Expand Down

0 comments on commit e680e1c

Please sign in to comment.