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