Skip to content

Commit

Permalink
fix: dispatch websocket update from the main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePicco committed Nov 20, 2024
1 parent f6d2433 commit b92935b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Solana.Unity.Rpc/SolanaStreamingRpcClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ private void HandleDataMessage(JToken jToken, string method, int subscriptionId)
break;
}

sub.HandleData(result);
MainThreadUtil.Run(() => sub.HandleData(result));
}

#region AccountInfo
Expand Down

0 comments on commit b92935b

Please sign in to comment.