Skip to content

Commit

Permalink
[FAB-8754] Stop event stream when unregister fails
Browse files Browse the repository at this point in the history
Change-Id: Ie8b1252b7d4b75c94942b10498ba4639ec9e47db
Signed-off-by: Troy Ronda <troy@troyronda.com>
  • Loading branch information
troyronda committed Mar 9, 2018
1 parent 79d6417 commit 9e02cf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/fab/events/eventhub.go
Expand Up @@ -183,7 +183,8 @@ func (eventHub *EventHub) Disconnect() error {
// Unregister interests with server and stop the stream
err := eventHub.grpcClient.UnregisterAsync(eventHub.interestedEvents)
if err != nil {
return errors.WithMessage(err, "event client UnregisterAsync failed")
logger.Warnf("eventhub failed to unregister interests with server: %v", err)
// continue to attempt to stop stream and close connection
}
err = eventHub.grpcClient.Stop()
if err != nil {
Expand Down

0 comments on commit 9e02cf4

Please sign in to comment.