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) @@ -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…
Cancel
Save