1
0
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:
Kano 2013-03-04 21:18:42 +11:00
parent 1bfc7120f7
commit f1ab8ea9e7

View File

@ -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);