diff --git a/Telegram/SourceFiles/platform/mac/specific_mac_p.mm b/Telegram/SourceFiles/platform/mac/specific_mac_p.mm index 6b9cc508a..b4208a042 100644 --- a/Telegram/SourceFiles/platform/mac/specific_mac_p.mm +++ b/Telegram/SourceFiles/platform/mac/specific_mac_p.mm @@ -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(); }