From 2489e899673c829f2590520a49ad256e6f771ee3 Mon Sep 17 00:00:00 2001 From: Son Roy Almerol Date: Wed, 8 Jan 2025 12:53:03 -0500 Subject: [PATCH] fix win build --- cmd/windows_agent/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/windows_agent/service.go b/cmd/windows_agent/service.go index c322098..12a9b08 100644 --- a/cmd/windows_agent/service.go +++ b/cmd/windows_agent/service.go @@ -226,14 +226,14 @@ func (p *agentService) run() { } }() - err = websockets.NewWSClient(func(c *websocket.Conn, m websockets.Message) { controllers.WSHandler(p.ctx, c, m, errChan) }) + _, err = websockets.NewWSClient(func(c *websocket.Conn, m websockets.Message) { controllers.WSHandler(p.ctx, c, m, errChan) }) for err != nil { logger.Errorf("WS connection error: %s", err) select { case <-p.ctx.Done(): return case <-time.After(time.Second * 5): - err = websockets.NewWSClient(func(c *websocket.Conn, m websockets.Message) { controllers.WSHandler(p.ctx, c, m, errChan) }) + _, err = websockets.NewWSClient(func(c *websocket.Conn, m websockets.Message) { controllers.WSHandler(p.ctx, c, m, errChan) }) } }