summaryrefslogtreecommitdiff
path: root/instr-daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'instr-daemon.c')
-rw-r--r--instr-daemon.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/instr-daemon.c b/instr-daemon.c
index e1d5c8e..e110863 100644
--- a/instr-daemon.c
+++ b/instr-daemon.c
@@ -294,9 +294,11 @@ int main(int argc, char **argv)
g_timeout_add (20, (GSourceFunc) periodic_poll, NULL);
g_timeout_add (100, (GSourceFunc) finish_boot, NULL);
- GThread *vxithread =g_thread_create(vxithreadfunc, NULL,false, NULL);
- if(vxithread == NULL)
- printf("Couldn't create vxi thread\n");
+ if (globals.Flash.vxi_enabled) {
+ GThread *vxithread =g_thread_create(vxithreadfunc, NULL,false, NULL);
+ if(vxithread == NULL)
+ printf("Couldn't create vxi thread\n");
+ }
g_main_loop_run (loop);