@@ -183,7 +183,9 @@ func (c *Line) writePump() {
c.host.Errors++
c.host.Updated = time.Now()
- time.Sleep(5 * time.Second * time.Duration(c.host.Errors))
+ delay := 5 * time.Second * time.Duration(c.host.Errors)
+ log.Println("[Line] will reconnect with delay:", delay)
+ time.Sleep(delay)
if c.host.Errors < 2 {
c.hub.ConnectToServerX(c.channel, false, c.host)
} else {