Skip to content

Commit

Permalink
Note
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Oct 3, 2024
1 parent 17ffec3 commit 6cb6cd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CryptoExchange.Net/Sockets/SocketConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,11 @@ protected virtual async Task HandleStreamMessage(WebSocketMessageType type, Read
}

if (processor is Subscription subscriptionProcessor && !subscriptionProcessor.Confirmed)
{
// If this message is for this listener then it is automatically confirmed, even if the subscription is not (yet) confirmed
subscriptionProcessor.Confirmed = true;
// This doesn't trigger a waiting subscribe query, should probably also somehow set the wait event for that
}

// 6. Deserialize the message
object? deserialized = null;
Expand Down

0 comments on commit 6cb6cd6

Please sign in to comment.