vendor: bump c/common

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano
2024-07-31 21:55:28 +02:00
parent 737c08224e
commit 75a316aae4
6 changed files with 21 additions and 14 deletions

View File

@ -130,6 +130,12 @@ func systemdDestroyConn(path string, c *systemdDbus.Conn) error {
ch := make(chan string)
_, err := c.StopUnitContext(context.TODO(), name, "replace", ch)
if err != nil {
if dbe, ok := err.(dbus.Error); ok {
if dbe.Name == "org.freedesktop.systemd1.NoSuchUnit" {
// the unit was already removed
return nil
}
}
return err
}
<-ch