|
|
@ -4072,6 +4072,8 @@ void switch_pools(struct pool *selected) |
|
|
|
applog(LOG_WARNING, "Switching to %s", get_pool_name(pool)); |
|
|
|
applog(LOG_WARNING, "Switching to %s", get_pool_name(pool)); |
|
|
|
if (pool_localgen(pool) || opt_fail_only) |
|
|
|
if (pool_localgen(pool) || opt_fail_only) |
|
|
|
clear_pool_work(last_pool); |
|
|
|
clear_pool_work(last_pool); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//if startup, initialize gpus and start mining threads
|
|
|
|
//if startup, initialize gpus and start mining threads
|
|
|
|
if(startup) |
|
|
|
if(startup) |
|
|
@ -4083,8 +4085,6 @@ void switch_pools(struct pool *selected) |
|
|
|
apply_initial_gpu_settings(pool); |
|
|
|
apply_initial_gpu_settings(pool); |
|
|
|
gpu_initialized = true; //gpus initialized
|
|
|
|
gpu_initialized = true; //gpus initialized
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mutex_lock(&lp_lock); |
|
|
|
mutex_lock(&lp_lock); |
|
|
|
pthread_cond_broadcast(&lp_cond); |
|
|
|
pthread_cond_broadcast(&lp_cond); |
|
|
|