mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
fix client retry bug
This commit is contained in:
parent
d4f0ab93c8
commit
0a5900bd8f
@ -150,6 +150,7 @@ RequestExecutor::executeAsync(
|
||||
{}
|
||||
|
||||
Action act() override {
|
||||
m_context.attempt ++;
|
||||
|
||||
if(!m_connectionHandle) {
|
||||
return m_this->getConnectionAsync().callbackTo(&ExecutorCoroutine::onConnection);
|
||||
@ -165,7 +166,6 @@ RequestExecutor::executeAsync(
|
||||
}
|
||||
|
||||
Action execute() {
|
||||
m_context.attempt ++;
|
||||
return m_this->executeOnceAsync(m_method, m_path, m_headers, m_body, m_connectionHandle).callbackTo(&ExecutorCoroutine::onResponse);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user