Browse Source

Release MMQ device only once (not 4 times)

nfactor-troky
Kano 12 years ago
parent
commit
f1ab8ea9e7
  1. 4
      usbutils.c

4
usbutils.c

@ -859,6 +859,10 @@ static void release_cgpu(struct cgpu_info *cgpu)
struct cgpu_info *lookcgpu; struct cgpu_info *lookcgpu;
int i; int i;
// It has already been done
if (cgpu->usbinfo.nodev)
return;
cgpu->usbinfo.nodev = true; cgpu->usbinfo.nodev = true;
cgpu->usbinfo.nodev_count++; cgpu->usbinfo.nodev_count++;
gettimeofday(&(cgpu->usbinfo.last_nodev), NULL); gettimeofday(&(cgpu->usbinfo.last_nodev), NULL);

Loading…
Cancel
Save