diff --git a/emper/Actor.hpp b/emper/Actor.hpp index 2a7bf281a3561903d42907aeaf30491e7b2a34f9..4065ee2c8ff74916ede9e851126249424d8f1431 100644 --- a/emper/Actor.hpp +++ b/emper/Actor.hpp @@ -57,7 +57,7 @@ class Actor { void stop() { setState(Stopped); } public: - virtual ~Actor() = default; + virtual ~Actor() { stop(); } template <CallerEnvironment callerEnvironment = CallerEnvironment::EMPER> void start() {