flush stdout after subscription events (#329)

This commit is contained in:
Carlos &
2023-11-08 15:58:56 -03:00
committed by GitHub
parent 3ed3ab8fec
commit 69e92da659

View File

@@ -77,8 +77,9 @@ private void print_help (string[] args) {
private void on_subscribe (uint count, bool dnd, bool cc_open, bool inhibited) {
stdout.printf (
"{ \"count\": %u, \"dnd\": %s, \"visible\": %s, \"inhibited\": %s }\n"
.printf (count, dnd.to_string (), cc_open.to_string (), inhibited.to_string ()));
"{ \"count\": %u, \"dnd\": %s, \"visible\": %s, \"inhibited\": %s }\n",
count, dnd.to_string (), cc_open.to_string (), inhibited.to_string ());
stdout.flush ();
}
private void print_subscribe () {