Fix possible crash on macOS wake.
This commit is contained in:
parent
c0043d56ea
commit
3fdd6848c5
1 changed files with 5 additions and 3 deletions
|
@ -157,11 +157,13 @@ ApplicationDelegate *_sharedDelegate = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) receiveWakeNote:(NSNotification*)aNotification {
|
- (void) receiveWakeNote:(NSNotification*)aNotification {
|
||||||
if (Core::IsAppLaunched()) {
|
if (!Core::IsAppLaunched()) {
|
||||||
Core::App().checkLocalTime();
|
return;
|
||||||
}
|
}
|
||||||
|
Core::App().checkLocalTime();
|
||||||
|
|
||||||
LOG(("Audio Info: -receiveWakeNote: received, scheduling detach from audio device"));
|
LOG(("Audio Info: "
|
||||||
|
"-receiveWakeNote: received, scheduling detach from audio device"));
|
||||||
Media::Audio::ScheduleDetachFromDeviceSafe();
|
Media::Audio::ScheduleDetachFromDeviceSafe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue