mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 03:25:31 +03:00
bus: fix unreffing logic
This commit is contained in:
parent
8f61afd8d8
commit
23abf5d582
@ -1365,7 +1365,8 @@ _public_ sd_bus *sd_bus_unref(sd_bus *bus) {
|
||||
* the messages and thus implicitly also kill our own
|
||||
* last references */
|
||||
|
||||
bus_reset_queues(bus);
|
||||
if (q)
|
||||
bus_reset_queues(bus);
|
||||
}
|
||||
|
||||
i = REFCNT_DEC(bus->n_ref);
|
||||
|
Loading…
Reference in New Issue
Block a user