From acf57209ccbd67fa96644abe5aef65f58264c112 Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Thu, 30 Nov 2017 09:08:17 +0100 Subject: Removes unnecessary returned func from WaitReady Change-Id: I34889c8c79fa8ef7a196f8d067edca7f1cb5ad33 Signed-off-by: Ondrej Fabry --- core/core.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/core.go') diff --git a/core/core.go b/core/core.go index c254214..ab0c6bf 100644 --- a/core/core.go +++ b/core/core.go @@ -232,9 +232,8 @@ func (c *Connection) disconnectVPP() { // Then it continues with healthCheckLoop. func (c *Connection) connectLoop(connChan chan ConnectionEvent) { // loop until connected - waitForVpp := c.vpp.WaitReady() for { - waitForVpp() + c.vpp.WaitReady() if err := c.connectVPP(); err == nil { // signal connected event connChan <- ConnectionEvent{Timestamp: time.Now(), State: Connected} -- cgit 1.2.3-korg