mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-28 23:44:30 +00:00
Do not do any setup if opt_api_listen is disabled in api.c.
This commit is contained in:
parent
2b5467c44c
commit
f3b96b8d26
10
api.c
10
api.c
@ -3482,16 +3482,16 @@ void api(int api_thr_id)
|
||||
bool did;
|
||||
int i;
|
||||
|
||||
mutex_init(&quit_restart_lock);
|
||||
|
||||
pthread_cleanup_push(tidyup, NULL);
|
||||
my_thr_id = api_thr_id;
|
||||
|
||||
if (!opt_api_listen) {
|
||||
applog(LOG_DEBUG, "API not running%s", UNAVAILABLE);
|
||||
return;
|
||||
}
|
||||
|
||||
mutex_init(&quit_restart_lock);
|
||||
|
||||
pthread_cleanup_push(tidyup, NULL);
|
||||
my_thr_id = api_thr_id;
|
||||
|
||||
setup_groups();
|
||||
|
||||
if (opt_api_allow) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user