Quellcode durchsuchen

* room server keep_alive ACKs now have unsynced_count appended.

Scott Powell vor 1 Jahr
Ursprung
Commit
7b1582a0b9
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      examples/simple_room_server/main.cpp

+ 1 - 0
examples/simple_room_server/main.cpp

@@ -583,6 +583,7 @@ protected:
 
             auto reply = createAck(ack_hash);
             if (reply) {
+              reply->payload[reply->payload_len++] = getUnsyncedCount(client);  // NEW: add unsynced counter to end of ACK packet
               sendDirect(reply, client->out_path, client->out_path_len);
             }
           }