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

View File

@@ -8,7 +8,7 @@ public:
IThreaded()
// invokes operator() on this object
: mThread() { }
~IThreaded() noexcept {
virtual ~IThreaded() noexcept {
if (mThread.joinable()) {
mThread.join();
}