Skip to content

Commit

Permalink
fix(walletconnect): fix null reference err in JsonRpcClient
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonboukheir committed Jun 12, 2022
1 parent a345cc2 commit 72f8f1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Runtime/CareBoo.AlgoSdk.WalletConnect/JsonRpcClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ async UniTaskVoid PollJsonRpcMessages(CancellationToken cancellationToken)
while (true)
{
var evt = await webSocketClient.PollUntilEvent(cancellationToken);
if (evt == null)
return;
switch (evt.Type)
{
case WebSocketEventType.Payload:
Expand Down

0 comments on commit 72f8f1f

Please sign in to comment.