This commit is contained in:
j 2023-11-08 23:04:17 +01:00
parent 841a654254
commit a33f94d5af

View file

@ -158,6 +158,7 @@ class Sync(Thread):
data = self.sock.recvfrom(1024)[0].decode().split(" ", 1) data = self.sock.recvfrom(1024)[0].decode().split(" ", 1)
except socket.timeout: except socket.timeout:
logger.error("failed to receive data from main") logger.error("failed to receive data from main")
return self.read_position_main()
else: else:
self.main.time_pos = float(data[0]) self.main.time_pos = float(data[0])
self.main.playlist_current_pos = int(data[1]) self.main.playlist_current_pos = int(data[1])