mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Possibly fix a crash in microphone testing.
This commit is contained in:
@@ -348,8 +348,8 @@ void Calls::startTestingMicrophone() {
|
|||||||
_micTester = std::make_unique<tgvoip::AudioInputTester>(
|
_micTester = std::make_unique<tgvoip::AudioInputTester>(
|
||||||
Global::CallInputDeviceID().toStdString());
|
Global::CallInputDeviceID().toStdString());
|
||||||
if (_micTester->Failed()) {
|
if (_micTester->Failed()) {
|
||||||
Ui::show(Box<InformBox>(lang(lng_call_error_audio_io)));
|
|
||||||
stopTestingMicrophone();
|
stopTestingMicrophone();
|
||||||
|
Ui::show(Box<InformBox>(lang(lng_call_error_audio_io)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user