Must enable UDP when receiving ping packets too.
authorfatbob313 <martin@fatbob.nu>
Sun, 7 Feb 2010 16:13:52 +0000 (16:13 +0000)
committerfatbob313 <martin@fatbob.nu>
Sun, 7 Feb 2010 16:13:52 +0000 (16:13 +0000)
src/client.c

index b72e46f06443952139d1588bb3763486b67f8c78..141934735629e96c9587cc16156505ff0de49cdf 100644 (file)
@@ -662,13 +662,13 @@ int Client_read_udp()
                goto out;
        }
        
+       itr->bUDP = true;
        len -= 4; /* Adjust for crypt header */
        msgType = (UDPMessageType_t)((buffer[0] >> 5) & 0x7);
        switch (msgType) {
        case UDPVoiceSpeex:
        case UDPVoiceCELTAlpha:
        case UDPVoiceCELTBeta:
-               itr->bUDP = true;
                Client_voiceMsg(itr, buffer, len);
                break;
        case UDPPing: