From 4a620cce4401e50e671e64d3751929e3616a3f86 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 5 Nov 2013 11:46:45 +1100 Subject: [PATCH] Initialise usb after all the locks and conditionals are initialised. --- cgminer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgminer.c b/cgminer.c index d1046459..ad1ef95f 100644 --- a/cgminer.c +++ b/cgminer.c @@ -8011,8 +8011,6 @@ int main(int argc, char *argv[]) initial_args[i] = strdup(argv[i]); initial_args[argc] = NULL; - initialise_usb(); - mutex_init(&hash_lock); mutex_init(&console_lock); cglock_init(&control_lock); @@ -8036,6 +8034,8 @@ int main(int argc, char *argv[]) if (unlikely(pthread_cond_init(&gws_cond, NULL))) quit(1, "Failed to pthread_cond_init gws_cond"); + initialise_usb(); + snprintf(packagename, sizeof(packagename), "%s %s", PACKAGE, VERSION); handler.sa_handler = &sighandler;