Skip to content

Commit

Permalink
Merge pull request #1258 from 0x0a0d/transit-ifx
Browse files Browse the repository at this point in the history
Transit improve
  • Loading branch information
icebob committed Jan 13, 2024
2 parents 3889543 + 2040693 commit b2c5a49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/transit.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,9 @@ class Transit {

return this.Promise.resolve()
.then(() => {
if (this.tx.connected) {
return this.discoverer.localNodeDisconnected().then(() => this.tx.disconnect());
}
return this.tx.connected && this.discoverer.localNodeDisconnected();
})
.then(() => this.tx.disconnect())
.then(() => (this.disconnecting = false));
}

Expand Down

0 comments on commit b2c5a49

Please sign in to comment.