Fix resuming audio on call end.

This commit is contained in:
John Preston 2018-11-09 11:26:33 +04:00
parent 561d3e0670
commit 9a1069c1ae
2 changed files with 1 additions and 4 deletions

View File

@ -31,9 +31,6 @@ void ScheduleDetachFromDeviceSafe();
void ScheduleDetachIfNotUsedSafe();
void StopDetachIfNotUsedSafe();
template <typename Callback>
void IterateSamples();
} // namespace Audio
namespace Player {

View File

@ -373,8 +373,8 @@ void Instance::resumeOnCall(AudioMsgId::Type type) {
if (const auto data = getData(type)) {
if (data->resumeOnCallEnd) {
data->resumeOnCallEnd = false;
play(type);
}
play(type);
}
}