summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorOndrej Fabry <ofabry@cisco.com>2017-11-30 09:08:17 +0100
committerOndrej Fabry <ofabry@cisco.com>2017-11-30 09:08:17 +0100
commitacf57209ccbd67fa96644abe5aef65f58264c112 (patch)
tree59ed1cdcca28f21d4eee9451de031e41c500c710 /core
parent67482a4f8c3a3a7cf17b4edf82e61c28b318ffd9 (diff)
Removes unnecessary returned func from WaitReady
Change-Id: I34889c8c79fa8ef7a196f8d067edca7f1cb5ad33 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'core')
-rw-r--r--core/core.go3
1 files changed, 1 insertions, 2 deletions
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}