Skip to content

Commit

Permalink
fix: fixed the issue blocking GolemNetwork.disconnecte because of mis…
Browse files Browse the repository at this point in the history
…sing gftp
  • Loading branch information
grisha87 committed Jul 31, 2024
1 parent 187937c commit 50633ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/golem-network/golem-network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,15 +356,14 @@ export class GolemNetwork {
* @return Resolves when all shutdown steps are completed
*/
async disconnect() {
if (!this.isConnected()) {
return;
}
if (this.disconnectPromise) {
return this.disconnectPromise;
}

this.disconnectPromise = this.startDisconnect().finally(() => {
this.disconnectPromise = undefined;
});

return this.disconnectPromise;
}

Expand Down

0 comments on commit 50633ef

Please sign in to comment.