make IThreaded::~IThreaded virtual to make destruction happen

This commit is contained in:
Lion Kortlepel
2023-12-05 18:03:13 +01:00
parent e245c9e9e2
commit dea203c108
+1 -1
View File
@@ -8,7 +8,7 @@ public:
IThreaded() IThreaded()
// invokes operator() on this object // invokes operator() on this object
: mThread() { } : mThread() { }
~IThreaded() noexcept { virtual ~IThreaded() noexcept {
if (mThread.joinable()) { if (mThread.joinable()) {
mThread.join(); mThread.join();
} }