fix worker reconnect errors, send cando after reconnection.
* fix worker reconnect errors, send cando after reconnection.
This commit is contained in:
parent
2fba865e37
commit
5c665de2d6
@ -159,8 +159,9 @@ func (a *agent) reconnect() error {
|
|||||||
a.conn = conn
|
a.conn = conn
|
||||||
a.rw = bufio.NewReadWriter(bufio.NewReader(a.conn),
|
a.rw = bufio.NewReadWriter(bufio.NewReader(a.conn),
|
||||||
bufio.NewWriter(a.conn))
|
bufio.NewWriter(a.conn))
|
||||||
a.grab()
|
|
||||||
a.worker.reRegisterFuncsForAgent(a)
|
a.worker.reRegisterFuncsForAgent(a)
|
||||||
|
a.grab()
|
||||||
|
|
||||||
go a.work()
|
go a.work()
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user