Skip to content

Commit

Permalink
flush stdout after subscription events (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
capezotte authored Nov 8, 2023
1 parent 3ed3ab8 commit 69e92da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 69e92da

Please sign in to comment.