From b57654607b74c52cc39fde7b6be05c0b9c8aac50 Mon Sep 17 00:00:00 2001 From: Kcchouette Date: Tue, 26 May 2026 10:40:50 +0000 Subject: [PATCH] Initialize the variable latencyCalculation before the conditional --- syncplay/protocols.py | 1 + 1 file changed, 1 insertion(+) diff --git a/syncplay/protocols.py b/syncplay/protocols.py index 3e1d8b054..aadf4115b 100755 --- a/syncplay/protocols.py +++ b/syncplay/protocols.py @@ -260,6 +260,7 @@ def _extractStatePlaystateArguments(self, state): return position, paused, doSeek, setBy def _handleStatePing(self, state): + latencyCalculation = None if "latencyCalculation" in state["ping"]: latencyCalculation = state["ping"]["latencyCalculation"] if "clientLatencyCalculation" in state["ping"]: