Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libct/cg/sd/dbus: fix NewDbusConnManager
Noticed that the check of trying to use both rootful and rootless in NewDbusConnManager never worked, as we never set dbusInited to true. Do that. While at it, protect this with the mutex (against the case of two goroutines simultaneously calling NewDbusConnManager). This is a rare call, so taking read-only then read-write mutex does not make sense. Fixes: c7f847e Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
- Loading branch information