Skip to content

Commit

Permalink
fix: Suppress the nat error
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Dec 22, 2023
1 parent c303db1 commit 8b07543
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xmcl-runtime/nat/NatService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export class NatService extends StatefulService<NatState> implements INatService
this.client.reject(e)
}
})
this.client.promise.catch((e) => {
this.warn(e)
})
}

async getNatState(): Promise<MutableState<NatState>> {
Expand Down

0 comments on commit 8b07543

Please sign in to comment.