Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #190 from pwillem/master
Browse files Browse the repository at this point in the history
Close dbus object to prevent goroutine leak
  • Loading branch information
muka committed Jan 15, 2024
2 parents 85dc80e + 74bc4ae commit 664f55c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/service/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,11 @@ func (app *App) Close() {
log.Warnf("GattManager1.UnregisterApplication: %s", err1)
}
}

if app.conn != nil {
err := app.conn.Close()
if err != nil {
log.Warnf("dbus.Conn.Close:: %s", err)
}
}
}

0 comments on commit 664f55c

Please sign in to comment.