mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
gtestdbus: Retry writes if they fail
It’s unlikely, but shuts up a Coverity warning. Coverity CID: #1232156 Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
24b5d86d4a
commit
eba2e7f056
@ -282,10 +282,13 @@ watcher_send_command (const gchar *command)
|
||||
{
|
||||
GIOChannel *channel;
|
||||
GError *error = NULL;
|
||||
GIOStatus status;
|
||||
|
||||
channel = watcher_init ();
|
||||
|
||||
g_io_channel_write_chars (channel, command, -1, NULL, &error);
|
||||
do
|
||||
status = g_io_channel_write_chars (channel, command, -1, NULL, &error);
|
||||
while (status == G_IO_STATUS_AGAIN);
|
||||
g_assert_no_error (error);
|
||||
|
||||
g_io_channel_flush (channel, &error);
|
||||
|
Loading…
Reference in New Issue
Block a user