Skip to content

Commit aaadd9f

Browse files
committed
Inheritence corrections for ESPressio Base
1 parent f4f13e6 commit aaadd9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ESPressio_Thread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace ESPressio {
1414
}
1515

1616
Thread::~Thread() {
17-
if (_onDestroy != nullptr) { _onDestroy(this); }
17+
DoNotifyDestroy();
1818
SetThreadState(ThreadState::Destroyed);
1919
ThreadManager::GetInstance()->RemoveThread(this);
2020
if (_taskHandle != nullptr) { vTaskDelete(_taskHandle); }

0 commit comments

Comments
 (0)