mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
Release MMQ device only once (not 4 times)
This commit is contained in:
parent
1bfc7120f7
commit
f1ab8ea9e7
@ -859,6 +859,10 @@ static void release_cgpu(struct cgpu_info *cgpu)
|
||||
struct cgpu_info *lookcgpu;
|
||||
int i;
|
||||
|
||||
// It has already been done
|
||||
if (cgpu->usbinfo.nodev)
|
||||
return;
|
||||
|
||||
cgpu->usbinfo.nodev = true;
|
||||
cgpu->usbinfo.nodev_count++;
|
||||
gettimeofday(&(cgpu->usbinfo.last_nodev), NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user