Skip to content

Commit

Permalink
bugfix panic in system events
Browse files Browse the repository at this point in the history
Signed-off-by: Navid Yaghoobi <[email protected]>
  • Loading branch information
navidys committed Mar 1, 2025
1 parent dcfb4e7 commit a2c2567
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ linters:
- execinquery
- funlen
- depguard
- nolintlint
# generics disabled
- wastedassign
- rowserrcheck
Expand Down
2 changes: 2 additions & 0 deletions system/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ func (engine *Engine) Disconnect() {
}

log.Debug().Msgf("health: disconnect")

engine.sysEvents.cancelChan <- true

registry.SetConnectionStatus(registry.ConnectionStatusDisconnected)
engine.conn.setStatus(registry.ConnectionStatusDisconnected, "")
registry.UnsetConnection()
Expand Down

0 comments on commit a2c2567

Please sign in to comment.