Skip to content

Commit

Permalink
fix: null pointer error
Browse files Browse the repository at this point in the history
  • Loading branch information
gigajuwels committed Jul 27, 2023
1 parent 752735c commit 523af87
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ private async Task<WebsocketClient> Register(string url)

private void OnOpen(WebsocketClient socket)
{
if (socket == null)
return;

socket.MessageReceived.Subscribe(OnPayload);
socket.DisconnectionHappened.Subscribe(OnDisconnect);

Expand Down

0 comments on commit 523af87

Please sign in to comment.