Skip to content

Commit b92935b

Browse files
committed
fix: dispatch websocket update from the main thread
1 parent f6d2433 commit b92935b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Solana.Unity.Rpc/SolanaStreamingRpcClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ private void HandleDataMessage(JToken jToken, string method, int subscriptionId)
309309
break;
310310
}
311311

312-
sub.HandleData(result);
312+
MainThreadUtil.Run(() => sub.HandleData(result));
313313
}
314314

315315
#region AccountInfo

0 commit comments

Comments
 (0)