Skip to content

Commit

Permalink
fix: process loop (#30)
Browse files Browse the repository at this point in the history
* fix: remove full status Update Requests

Signed-off-by: Martin Buchleitner <[email protected]>

---------

Signed-off-by: Martin Buchleitner <[email protected]>
  • Loading branch information
mabunixda authored Jan 28, 2024
1 parent 7192937 commit a5d4df5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wattpilot.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,11 +491,11 @@ func (w *Wattpilot) processLoop(ctx context.Context) {
continue
}
w._log.WithFields(log.Fields{"wattpilot": w._host}).Trace("Hello there")
if err := w.RequestStatusUpdate(); err != nil {
w._log.WithFields(log.Fields{"wattpilot": w._host}).Error("Full Status Update failed: ", err)
w._readCancel()
break
}
// if err := w.RequestStatusUpdate(); err != nil {
// w._log.WithFields(log.Fields{"wattpilot": w._host}).Error("Full Status Update failed: ", err)
// w._readCancel()
// break
// }
break
case <-w._readContext.Done():
w._log.WithFields(log.Fields{"wattpilot": w._host}).Trace("Read context is done")
Expand Down

0 comments on commit a5d4df5

Please sign in to comment.