Skip to content

Commit 8a350a9

Browse files
committed
notifications
1 parent 5620c5e commit 8a350a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,12 @@ func (c *client) reconnect(connectionUp connCompletedFn) {
318318
DEBUG.Println(CLI, "Detect continual connection lost after reconnect, slept for", int(slp.Seconds()), "seconds")
319319
}
320320

321-
var err error
322321
var attemptCount int
323322
for {
324323
if nil != c.options.OnReconnecting {
325324
c.options.OnReconnecting(c, &c.options)
326325
}
326+
var err error
327327
conn, _, _, err = c.attemptConnection(true, attemptCount)
328328
if err == nil {
329329
break

0 commit comments

Comments
 (0)