]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix potential bug if the timing data is inconsistent for 10 tries.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 30 Sep 2023 14:40:40 +0000 (15:40 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 30 Sep 2023 14:40:40 +0000 (15:40 +0100)
ptp-utilities.c

index 34184c1463ca4871d6d1ff7beab8ad304c7c72ae..958f65420ed39ba6576b9cae194452f32190e0dc 100644 (file)
@@ -86,7 +86,7 @@ int get_nqptp_data(struct shm_structure *nqptp_data) {
       }
     } while (
         (memcmp(&nqptp_data->main, &local_nqptp_data.secondary, sizeof(shm_structure_set)) != 0) &&
-        (loop_count < 100));
+        (loop_count < 10));
     if (loop_count == 10) {
       debug(1, "get_nqptp_data -- main and secondary records don't match after %d attempts!",
             loop_count);