Skip to content

Commit

Permalink
fix potential npe in wallet rpc startSyncing()
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Jan 7, 2024
1 parent 66198ff commit cfd70c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/ts/wallet/MoneroWalletRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ export default class MoneroWalletRpc extends MoneroWallet {

// update sync period for poller
this.syncPeriodInMs = syncPeriodInSeconds * 1000;
if (this.walletPoller !== undefined) this.walletPoller.setPeriodInMs(syncPeriodInMs);
if (this.walletPoller !== undefined) this.walletPoller.setPeriodInMs(this.syncPeriodInMs);

// poll if listening
await this.poll();
Expand Down

0 comments on commit cfd70c5

Please sign in to comment.