Skip to content

Commit

Permalink
Timeout#~Timeout(): cancel the Timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Nov 26, 2024
1 parent 175099c commit 21fc946
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/base/io-engine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ class Timeout : public SharedObject
}));
}

~Timeout() override
{
Cancel();
}

void Cancel();

private:
Expand Down

0 comments on commit 21fc946

Please sign in to comment.