make IThreaded::~IThreaded virtual to make destruction happen

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