Skip to content

Commit

Permalink
fix(routing): async message pickup on init (openwallet-foundation#1093)
Browse files Browse the repository at this point in the history
Signed-off-by: Ariel Gentile <gentilester@gmail.com>
  • Loading branch information
genaris authored Nov 9, 2022
1 parent ef20f1e commit 15cfd91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/modules/routing/RecipientApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ export class RecipientApi {
// Poll for messages from mediator
const defaultMediator = await this.findDefaultMediator()
if (defaultMediator) {
await this.initiateMessagePickup(defaultMediator)
this.initiateMessagePickup(defaultMediator).catch((error) => {
this.logger.warn(`Error initiating message pickup with mediator ${defaultMediator.id}`, { error })
})
}
}

Expand Down

0 comments on commit 15cfd91

Please sign in to comment.