fix: Fix timer spurious calls (#1700)

Fixes #1634.
I also checked other timers and they don't have the issue.
This commit is contained in:
Sergey Kuznetsov
2024-10-23 14:24:05 +01:00
committed by GitHub
parent f351a4cc79
commit cf081e7e25
2 changed files with 22 additions and 6 deletions

View File

@@ -57,10 +57,16 @@ Retry::Retry(RetryStrategyPtr strategy, boost::asio::strand<boost::asio::io_cont
{
}
Retry::~Retry()
{
*canceled_ = true;
}
void
Retry::cancel()
{
timer_.cancel();
*canceled_ = true;
}
size_t