Tweak the Bus example

This commit is contained in:
Ole André Vadla Ravnås committed 2021-06-10 18:24:16 +02:00
1 parent 7667e9716e
commit a217308a9a
1 file changed
+4 -4
+4 -4
View File
@@ -40,6 +40,10 @@ class Application:
sys.stdout.write("\033[1A\033[K")
sys.stdout.flush()
if len(text) == 0:
self._print("Processes:", self._device.enumerate_processes())
continue
if text.startswith("/join "):
if self._channel is not None:
self._bus.post({
@@ -62,10 +66,6 @@ class Application:
})
continue
if len(text) == 0:
self._print("Processes:", self._device.enumerate_processes())
continue
if self._channel is not None:
self._bus.post({
'channel': self._channel,