Don't stop SDL event processing thread when it is not running

This commit is contained in:
Simon Fels 2016-12-19 08:00:16 +01:00
commit 009cbb3402

View file

@ -73,8 +73,10 @@ PlatformPolicy::PlatformPolicy(
}
PlatformPolicy::~PlatformPolicy() {
event_thread_running_ = false;
event_thread_.join();
if (event_thread_running_) {
event_thread_running_ = false;
event_thread_.join();
}
}
void PlatformPolicy::process_events() {