Fix possible crash at exit on iOS

This commit is contained in:
Marcelo Fernandez
2017-10-02 10:39:32 -03:00
committed by Marcelo
parent 9a793659dd
commit 116e735e8b
3 changed files with 20 additions and 8 deletions

View File

@ -726,7 +726,8 @@ void AudioServerSW::_thread_func(void *self) {
while (!as->exit_update_thread) {
as->_update_streams(true);
OS::get_singleton()->delay_usec(5000);
if (OS::get_singleton())
OS::get_singleton()->delay_usec(5000);
}
}