git.graph-it.com
/
graphit
/
controlpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c85171f
)
Conf changed message before writing.
author
Benjamin Braatz
<benjamin.braatz@graph-it.com>
Tue, 27 Jul 2021 09:46:28 +0000
(11:46 +0200)
committer
Benjamin Braatz
<benjamin.braatz@graph-it.com>
Tue, 27 Jul 2021 09:46:28 +0000
(11:46 +0200)
controlpi/messagebus.py
patch
|
blob
|
history
diff --git
a/controlpi/messagebus.py
b/controlpi/messagebus.py
index a3299cfec8632d8b3a26549d3ad1029e6ce46661..dcfe555fce25307befa0cd0c9cfb9263c416570f 100644
(file)
--- a/
controlpi/messagebus.py
+++ b/
controlpi/messagebus.py
@@
-1189,9
+1189,9
@@
class MessageBus:
if conf == message['conf']:
await self._queue.put(Message('', {'event': 'conf unchanged'}))
else:
+ await self._queue.put(Message('', {'event': 'conf changed'}))
with open(sys.argv[1], 'w') as conf_file:
json.dump(message['conf'], conf_file)
- await self._queue.put(Message('', {'event': 'conf changed'}))
for client in self._recv_reg.get(message):
await self._callbacks[client](message)
self._queue.task_done()