mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-02 23:18:44 +05:00
fix sendRequest()
This commit is contained in:
1 parent
cd0e8a6a11
commit
c5434e0a45
1 file changed
+7
-3
@@ -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