Commit e22ecb19 authored by Youness Alaoui's avatar Youness Alaoui

race condition where the whole thing finishes up before...

race condition where the whole thing finishes up before g_main_loop_run(error_loop) gets called, so it gets stuck.. so we need to delay all threads by a little...
parent 577aaa5a
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
GMainLoop *error_loop; GMainLoop *error_loop;
...@@ -66,6 +67,7 @@ mainloop_thread (gpointer data) ...@@ -66,6 +67,7 @@ mainloop_thread (gpointer data)
{ {
GMainLoop *loop = data; GMainLoop *loop = data;
usleep (100000);
g_main_loop_run (loop); g_main_loop_run (loop);
return NULL; return 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