Downgraded non-user thread errors to warnings

This commit is contained in:
EricLiu2000
2019-07-24 13:22:17 -04:00
parent 6f8d307850
commit 66126b2b61
7 changed files with 27 additions and 0 deletions
+4
View File
@@ -143,6 +143,8 @@ std::shared_ptr<Message> Communication::waitForMessageSync(std::shared_ptr<Messa
void Communication::readTask() {
std::vector<uint8_t> readBytes;
EventManager::GetInstance().downgradeErrorsOnCurrentThread();
while(!closing) {
readBytes.clear();
if(impl->readWait(readBytes)) {
@@ -163,4 +165,6 @@ void Communication::readTask() {
}
}
}
EventManager::GetInstance().cancelErrorDowngradingOnCurrentThread();
}