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 Alex Kremer
parent 6d070132c7
commit 5c77e59374
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