diff options
author | Chris Coulson <chris.coulson@canonical.com> | 2011-12-14 14:00:56 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-12-14 21:15:35 -0500 |
commit | 162bafee37ccd5d58260423a8120fdcba25ecad6 (patch) | |
tree | 868151a32e6d355466cc4c1832989e957fde539b /gio | |
parent | a6eda97d8e8440ea5b04c081d444916dc51ad220 (diff) | |
download | glib-162bafee37ccd5d58260423a8120fdcba25ecad6.tar.gz glib-162bafee37ccd5d58260423a8120fdcba25ecad6.tar.bz2 glib-162bafee37ccd5d58260423a8120fdcba25ecad6.zip |
Initialize service_loop before running the service thread
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666129
Diffstat (limited to 'gio')
-rw-r--r-- | gio/tests/gdbus-peer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/tests/gdbus-peer.c b/gio/tests/gdbus-peer.c index 7eeb59d6f..9ee0b08cb 100644 --- a/gio/tests/gdbus-peer.c +++ b/gio/tests/gdbus-peer.c @@ -1678,10 +1678,10 @@ codegen_test_peer (void) GVariant *value; /* bring up a server - we run the server in a different thread to avoid deadlocks */ + service_loop = NULL; service_thread = g_thread_new ("codegen_test_peer", codegen_service_thread_func, NULL); - service_loop = NULL; while (service_loop == NULL) g_thread_yield (); g_assert (codegen_server != NULL); |