Skip to content

Commit

Permalink
fixing Azure#675 by keeping the Status property in sync with the stat…
Browse files Browse the repository at this point in the history
…e of the service connection (Azure#763)
  • Loading branch information
KKhurin authored and JialinXin committed Dec 20, 2019
1 parent 7ec80f4 commit 1847bc1
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 1847bc1

Please sign in to comment.