aboutsummaryrefslogtreecommitdiffstats
path: root/core/core.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/core.go')
-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}