sefidgaran / signalr_client

A Flutter SignalR Client for ASP.NET Core

Home Page:https://pub.dev/packages/signalr_netcore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible error in HubConnection._connectionClosed

rho-cassiopeiae opened this issue · comments

While browsing over the source code I've found this bit in HubConnection._connectionClosed method (line 692):

  if (_connectionState == HubConnectionState.Disconnecting) {
    _completeClose(error: error);
  } else if (_connectionState == HubConnectionState.Connected) {
    _reconnect(error: error);
  } else if (_connectionState == HubConnectionState.Connected) {
    _completeClose(error: error);
  }

The last two if conditions are the same.