mirror of
https://github.com/vale981/stream
synced 2025-03-04 17:41:38 -05:00
use put in the systemd interface
This commit is contained in:
parent
1f58eac009
commit
b0f7c46835
1 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,6 @@
|
|||
(keyword state)
|
||||
false)))
|
||||
|
||||
;; TODO: PR to implement in dbus lib.
|
||||
(defn enable-service!
|
||||
"Enables the service with the name. Returns true on success."
|
||||
[name]
|
||||
|
@ -188,7 +187,8 @@
|
|||
(reify
|
||||
UnitStateListener
|
||||
(stateChanged [this unit properties]
|
||||
(>!! chan (DBusMap->map properties))))]
|
||||
(a/put! chan {:data (DBusMap->map properties)
|
||||
:type :dbus})))]
|
||||
(. (get-service! name) addListener listener)
|
||||
[chan (fn []
|
||||
(close! chan)
|
||||
|
|
Loading…
Add table
Reference in a new issue