Skip to content

Commit

Permalink
#266 - Server connection problem when any exception comes from ApiHub…
Browse files Browse the repository at this point in the history
…State.
  • Loading branch information
maraf committed May 4, 2020
1 parent b1e2852 commit ac4563a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Money.UI.Blazor/Services/ServerConnectionState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private void RaiseChanged()
private void OnServerStateChanged(ApiHubStatus status, Exception e)
{
log.Debug($"ApiHub update '{status}', '{e?.GetType()?.Name}'.");
if (status == ApiHubStatus.Disconnected && e is ServerNotRespondingException)
if (status == ApiHubStatus.Disconnected && e != null)
{
isHubConnected = false;
RaiseChanged();
Expand Down

0 comments on commit ac4563a

Please sign in to comment.