mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 02:34:29 +05:00
fix sendRequest()
This commit is contained in:
@@ -45,15 +45,19 @@ public:
|
||||
_response = 0;
|
||||
|
||||
} else {
|
||||
while (!isReady()) {
|
||||
while (true) {
|
||||
process();
|
||||
|
||||
if (isReady()) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (this->yieldCallback != nullptr) {
|
||||
this->yieldCallback(yieldArg);
|
||||
|
||||
} else {
|
||||
::yield();
|
||||
}
|
||||
|
||||
process();
|
||||
}
|
||||
|
||||
_response = getLastResponse();
|
||||
|
||||
Reference in New Issue
Block a user