Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Some Issues, Improve Code quality #3051

Merged
merged 8 commits into from Apr 26, 2017
4 changes: 2 additions & 2 deletions src/mumble/VoiceRecorder.cpp
Expand Up @@ -294,7 +294,7 @@ bool VoiceRecorder::ensureFileIsOpenedFor(SF_INFO& soundFileInfo, boost::shared_
void VoiceRecorder::run() {
Q_ASSERT(!m_recording);

if (g.sh && g.sh->uiVersion < 0201003)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WTF? Why did we do this in the first place?!

if (g.sh && g.sh->uiVersion < 0x010203)
return;

SF_INFO soundFileInfo = createSoundFileInfo();
Expand All @@ -307,7 +307,7 @@ void VoiceRecorder::run() {
m_sleepLock.lock();
m_sleepCondition.wait(&m_sleepLock);

if (!m_recording || m_abort || (g.sh && g.sh->uiVersion < 0201003)) {
if (!m_recording || m_abort || (g.sh && g.sh->uiVersion < 0x010203)) {
m_sleepLock.unlock();
break;
}
Expand Down