Skip to content

Commit

Permalink
(fix) websocket handling in DeCONZ Client
Browse files Browse the repository at this point in the history
  • Loading branch information
splattner committed Sep 28, 2023
1 parent 6001e25 commit b0d6617
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions pkg/client/deconzclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,6 @@ func (c *DeconzClient) deconzClientLoop() {

if c.deconz == nil {
c.setupDeconz()
} else {
return
}

if c.deconz != nil {
Expand Down
4 changes: 3 additions & 1 deletion pkg/deconz/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const (
// Stop the listen Loop
func (d *Deconz) Stop() {

d.controlChannel <- "stop"
if d.controlChannel != nil {
d.controlChannel <- "stop"
}

}

Expand Down

0 comments on commit b0d6617

Please sign in to comment.