Skip to content

Commit

Permalink
check the dictionary _eoseCalledOnSubscriptionClients before adding a…
Browse files Browse the repository at this point in the history
… subscription class
  • Loading branch information
dangershony committed Dec 6, 2024
1 parent 21eab5a commit f46f774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Angor/Shared/Services/NostrCommunicationFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public bool EoseEventReceivedOnAllRelays(string subscription)
public void MonitoringEoseReceivedOnSubscription(string subscription)
{
_logger.LogInformation($"Started monitoring subscription {subscription}");
_eoseCalledOnSubscriptionClients.Add(subscription, new List<string>());
_eoseCalledOnSubscriptionClients.TryAdd(subscription, new List<string>());
}

public void ClearEoseReceivedOnSubscriptionMonitoring(string subscription)
Expand Down

0 comments on commit f46f774

Please sign in to comment.