Преглед на файлове

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