From 5c665de2d689a232b35fde9247263a9a49254000 Mon Sep 17 00:00:00 2001 From: Sadlil Rhythom Date: Fri, 27 Jan 2017 17:32:20 +0600 Subject: [PATCH] fix worker reconnect errors, send cando after reconnection. * fix worker reconnect errors, send cando after reconnection. --- worker/agent.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worker/agent.go b/worker/agent.go index 3367ad3..18c8f67 100644 --- a/worker/agent.go +++ b/worker/agent.go @@ -159,8 +159,9 @@ func (a *agent) reconnect() error { a.conn = conn a.rw = bufio.NewReadWriter(bufio.NewReader(a.conn), bufio.NewWriter(a.conn)) - a.grab() + a.worker.reRegisterFuncsForAgent(a) + a.grab() go a.work() return nil