Don't stop SDL event processing thread when it is not running
This commit is contained in:
parent
2f849059c2
commit
009cbb3402
1 changed files with 4 additions and 2 deletions
|
|
@ -73,8 +73,10 @@ PlatformPolicy::PlatformPolicy(
|
||||||
}
|
}
|
||||||
|
|
||||||
PlatformPolicy::~PlatformPolicy() {
|
PlatformPolicy::~PlatformPolicy() {
|
||||||
event_thread_running_ = false;
|
if (event_thread_running_) {
|
||||||
event_thread_.join();
|
event_thread_running_ = false;
|
||||||
|
event_thread_.join();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlatformPolicy::process_events() {
|
void PlatformPolicy::process_events() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue