diff --git a/api/client.go b/api/client.go index 9068708d01307030a811065b810588d8614b677c..118615bdcb7d4dc23b6a7fde682a3fdc224b4a6a 100644 --- a/api/client.go +++ b/api/client.go @@ -435,15 +435,16 @@ func (c *Client) StopNetworkFollower(timeout time.Duration) error { return errors.WithMessage(err, "Failed to Stop the Network Follower") } err = c.runner.Close(timeout) - if err != nil { - return errors.WithMessage(err, "Failed to Stop the Network Follower") - } c.runner = stoppable.NewMulti("client") - err = c.status.toStopped() - if err != nil { - return errors.WithMessage(err, "Failed to Stop the Network Follower") + err2 := c.status.toStopped() + if err2 != nil { + if err ==nil{ + err = err2 + }else{ + err = errors.WithMessage(err,err2.Error()) + } } - return nil + return err } // NetworkFollowerStatus Gets the state of the network follower. Returns: