Skip to content

Commit

Permalink
fixing #675 by keeping the Status property in sync with the state of …
Browse files Browse the repository at this point in the history
…the service connection
  • Loading branch information
KKhurin committed Dec 11, 2019
1 parent 31ae4d4 commit 81c8343
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ protected Task OnServiceErrorAsync(ServiceErrorMessage serviceErrorMessage)
// But messages in the pipe from service -> server should be processed as usual. Just log without
// throw exception here.
_errorMessage = serviceErrorMessage.ErrorMessage;

// Update the status immediately
Status = ServiceConnectionStatus.Disconnected;
Log.ReceivedServiceErrorMessage(Logger, ConnectionId, serviceErrorMessage.ErrorMessage);
}

Expand Down

0 comments on commit 81c8343

Please sign in to comment.