Fixed a command packet order issue

This commit is contained in:
WolverinDEV
2019-07-21 14:56:53 +02:00
parent a5e545afeb
commit c9e257270f
5 changed files with 15 additions and 4 deletions
+6 -1
View File
@@ -620,7 +620,12 @@ inline void send_channels(ConnectedClient* client, ChannelIT begin, const Channe
if(++index > 6)
break;
}
client->sendCommand(channellist);
if(dynamic_cast<VoiceClient*>(client)) {
auto vc = dynamic_cast<VoiceClient*>(client);
vc->sendCommand0(channellist, false, true); /* we need to process this command directly so it will be processed before the channellistfinished stuff */
} else {
client->sendCommand(channellist);
}
if(begin != end)
send_channels(client, begin, end, override_orderid);
}