event/Thread: auto-stop in the destructor

This commit is contained in:
Max Kellermann 2017-02-10 22:12:44 +01:00
parent 87c9856b20
commit 822724d1aa

View File

@ -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;
} }