mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Inverted sem_init logic.
This commit is contained in:
parent
b0fa94d52a
commit
78d6bee137
@ -7374,7 +7374,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
// before device detection
|
||||
if (!opt_scrypt) {
|
||||
if (!sem_init(&usb_resource_sem, 0, 0))
|
||||
if (sem_init(&usb_resource_sem, 0, 0))
|
||||
quit(1, "Failed to sem_init usb_resource_sem");
|
||||
usbres_thr_id = 1;
|
||||
thr = &control_thr[usbres_thr_id];
|
||||
|
Loading…
x
Reference in New Issue
Block a user