summaryrefslogtreecommitdiff
path: root/tests/test-io-stream-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-io-stream-common.c')
-rw-r--r--tests/test-io-stream-common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test-io-stream-common.c b/tests/test-io-stream-common.c
index 5874cee..0f9adec 100644
--- a/tests/test-io-stream-common.c
+++ b/tests/test-io-stream-common.c
@@ -506,7 +506,11 @@ check_for_termination (TestIOStreamThreadData *data, gsize *recv_count,
gpointer tmp;
/* Wait for transmission to complete. */
- while (*send_count < expected_recv_count);
+ while (*send_count < expected_recv_count) {
+ if (data->callbacks->wait_transmission_cb) {
+ data->callbacks->wait_transmission_cb (data->agent);
+ }
+ }
/* Send a close message. */
tmp = g_object_get_data (G_OBJECT (data->agent), "stream-id");