Skip to content

Commit

Permalink
server/plugin: close DB on exit (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
isacikgoz authored Mar 7, 2024
1 parent f616f36 commit d433977
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ func (p *Plugin) OnDeactivate() error {
// the plugin mutex unlock panics if the lock was not acquired
// so we need to check whether we actually acquired the lock
if p.isHA() && p.singletonLockAcquired {
defer p.client.Store.Close()
defer p.singletonLock.Unlock()
}

Expand Down

0 comments on commit d433977

Please sign in to comment.