Skip to content

Commit

Permalink
Merge pull request #26 from sonroyaalmerol/snapshot-by-request
Browse files Browse the repository at this point in the history
fix win build
  • Loading branch information
sonroyaalmerol authored Jan 8, 2025
2 parents ce20625 + 2489e89 commit 04fe47a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/windows_agent/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) })
}
}

Expand Down

0 comments on commit 04fe47a

Please sign in to comment.