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: