소스 검색

dont apply throttling for multi-packet commands

Chris Mullins 8 년 전
부모
커밋
205fe90b20
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/MiLight/MiLightClient.cpp

+ 1 - 1
lib/MiLight/MiLightClient.cpp

@@ -402,9 +402,9 @@ void MiLightClient::updateResendCount() {
 
 void MiLightClient::flushPacket() {
   PacketStream& stream = currentRemote->packetFormatter->buildPackets();
+  updateResendCount();
 
   while (stream.hasNext()) {
-    updateResendCount();
     write(stream.next());
 
     if (stream.hasNext()) {