From 04c072812a56c8a1e7b8ff94c77c2c5c12ed6cc2 Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flow@cs.fau.de>
Date: Wed, 24 Mar 2021 11:21:23 +0100
Subject: [PATCH] [Actor] Call stop() in Actor's destructor

While this does not fix anything, it appears sensible that we call
stop() prior destruction.
---
 emper/Actor.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emper/Actor.hpp b/emper/Actor.hpp
index 2a7bf281..4065ee2c 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() {
-- 
GitLab