Fixed wait check in device online/offline

This commit is contained in:
EricLiu2000
2019-08-07 10:06:33 -04:00
parent 5112e1d2f9
commit 9629864f1b
6 changed files with 46 additions and 30 deletions
+1 -1
View File
@@ -378,7 +378,7 @@ void VCP::readTask() {
} else
report(APIEvent::Type::FailedToRead, APIEvent::Severity::Error);
}
if(ret == WAIT_ABANDONED) {
if(ret == WAIT_ABANDONED || ret == WAIT_FAILED) {
state = LAUNCH;
report(APIEvent::Type::FailedToRead, APIEvent::Severity::Error);
}