Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions screencapture/activator.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ func EnableQTConfig(device IosDevice) (IosDevice, error) {
device, err = device.ReOpen(ctx)
if err != nil {
log.Debugf("device not found:%s", err)
continue
} else {
break
}
i++
if i > 10 {
log.Debug("Failed activating config")
return IosDevice{}, fmt.Errorf("could not activate Quicktime Config for %s", usbSerial)
}
break
}
log.Debugf("QTConfig for %s activated", usbSerial)
return device, err
Expand Down