mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-22 09:07:05 +02:00
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 {
|
||||
if (Core::IsAppLaunched()) {
|
||||
Core::App().checkLocalTime();
|
||||
if (!Core::IsAppLaunched()) {
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue