Writing to User->sState requires holding qrwlVoiceThread.

This commit is contained in:
Mikkel Krautz 2016-05-15 18:27:53 +02:00
parent 9dfca42ab9
commit 80c6e311e2

View File

@ -279,7 +279,11 @@ void Server::msgAuthenticate(ServerUser *uSource, MumbleProto::Authenticate &msg
userEnterChannel(uSource, lc, mpus);
uSource->sState = ServerUser::Authenticated;
{
QWriteLocker wl(&qrwlVoiceThread);
uSource->sState = ServerUser::Authenticated;
}
mpus.set_session(uSource->uiSession);
mpus.set_name(u8(uSource->qsName));
if (uSource->iId >= 0) {