Skip to content

Commit

Permalink
fix(walletconnect): fix null reference in WebSocketExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonboukheir committed Jun 12, 2022
1 parent 72f8f1f commit 6f23d10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Runtime/CareBoo.AlgoSdk.WalletConnect/WebSocketExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public static async UniTask<WebSocketEvent> PollUntilEvent(
CancellationToken cancellationToken = default
)
{
if (client == null)
return null;
WebSocketEvent evt = client.Poll();
while (evt.Type == WebSocketEventType.Nothing)
{
Expand Down

0 comments on commit 6f23d10

Please sign in to comment.