Commit 822724d1 authored by Max Kellermann's avatar Max Kellermann

event/Thread: auto-stop in the destructor

parent 87c9856b
...@@ -36,6 +36,10 @@ class EventThread final { ...@@ -36,6 +36,10 @@ class EventThread final {
Thread thread; Thread thread;
public: public:
~EventThread() {
Stop();
}
EventLoop &GetEventLoop() { EventLoop &GetEventLoop() {
return event_loop; return event_loop;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment