diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2005-02-01 20:32:50 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2005-02-01 20:32:50 +0000 |
commit | 4bdd55b8d18ea82aa567c9fac71c59844662027d (patch) | |
tree | 5612c83554d7890b82c2401cedcec0c0622d8a0a /testsuite | |
parent | edc6803ed130ca67eeed36a22155030c3aff7767 (diff) |
testsuite/threads/threadi.c: Fix buglet in test.
Original commit message from CVS:
* testsuite/threads/threadi.c: (cb_data):
Fix buglet in test.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/threads/threadi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuite/threads/threadi.c b/testsuite/threads/threadi.c index 6fe8840b3..284e66363 100644 --- a/testsuite/threads/threadi.c +++ b/testsuite/threads/threadi.c @@ -51,9 +51,14 @@ cb_eos (gpointer data) static void cb_data (gpointer data) { + static gboolean first = TRUE; + g_print ("Received data\n"); - g_idle_add ((GSourceFunc) cb_quit, NULL); + if (first) { + first = FALSE; + g_idle_add ((GSourceFunc) cb_quit, NULL); + } } #endif |