Skip to content

Commit

Permalink
Serialize Hub Property Queries in Hub Startup
Browse files Browse the repository at this point in the history
#142 non-breaking
  • Loading branch information
tthiery committed Mar 23, 2021
1 parent 3a7bd9f commit 8dc1094
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SharpBrick.PoweredUp/Hubs/Hub_Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ private IObservable<T> BuildObservableForProperty<T>(IObservable<LegoWirelessMes

private async Task InitialHubPropertiesQueryAsync()
{
await Task.WhenAll(_knownProperties.Select(property => RequestHubPropertySingleUpdate(property)));
foreach (var property in _knownProperties)
{
await RequestHubPropertySingleUpdate(property);
}
}

public Task RequestHubPropertySingleUpdate(HubProperty property)
Expand Down

0 comments on commit 8dc1094

Please sign in to comment.