if ((!queue.isEmpty()) && qh.isEmpty()) {
final UHCIRequest nextReq = (UHCIRequest) queue.get();
try {
activateRequest(nextReq);
} catch (USBException ex) {
final AbstractUSBRequest areq = (AbstractUSBRequest) nextReq;
areq.setStatus(USBConstants.USBREQ_ST_BITSTUFF);
areq.setCompleted(true);
log.error("Unknown errr in activateRequest", ex);
}
}
}
}