From 21fc9466126f05620e6a6209a0e018d5dde27ec6 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 26 Nov 2024 15:06:43 +0100 Subject: [PATCH] Timeout#~Timeout(): cancel the Timeout --- lib/base/io-engine.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/base/io-engine.hpp b/lib/base/io-engine.hpp index 55b747a065..75a4b7b525 100644 --- a/lib/base/io-engine.hpp +++ b/lib/base/io-engine.hpp @@ -183,6 +183,11 @@ class Timeout : public SharedObject })); } + ~Timeout() override + { + Cancel(); + } + void Cancel(); private: