server: prevent disconnecting on packetId wrap