Avoid shuting down opus voip codec multiple times

This commit is contained in:
Zack Middleton committed 2016-10-09 18:30:19 -05:00
1 parent 755b2f38f0
commit 978afd7590
1 file changed
+1
+1
View File
@@ -1417,6 +1417,7 @@ void CL_Disconnect( qboolean showMainMenu ) {
for (i = 0; i < MAX_CLIENTS; i++) {
opus_decoder_destroy(clc.opusDecoder[i]);
}
clc.voipCodecInitialized = qfalse;
}
Cmd_RemoveCommand ("voip");
#endif