Commit 162bafee authored by Chris Coulson's avatar Chris Coulson Committed by Matthias Clasen

Initialize service_loop before running the service thread

parent a6eda97d
......@@ -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",
service_loop = NULL;
while (service_loop == NULL)
g_thread_yield ();
g_assert (codegen_server != NULL);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment