signalr_client icon indicating copy to clipboard operation
signalr_client copied to clipboard

Possible error in HubConnection._connectionClosed

Open rho-cassiopeiae opened this issue 2 years ago • 0 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.

rho-cassiopeiae avatar Jan 07 '23 00:01 rho-cassiopeiae