瀏覽代碼

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()) {