Zachary Kotlarek 13 лет назад
Родитель
Сommit
84d4a851ee
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      dmx/rifftrax.pl

+ 6 - 2
dmx/rifftrax.pl

@@ -77,8 +77,12 @@ while (1) {
 
 	# Reconnect if we're playing and haven't seen an update for $JUMP_THRESHOLD seconds
 	if ($playing && time() - $pullLast > $JUMP_THRESHOLD) {
-		print STDERR "Attempting to reconnect state socket...\n";
-		DMX::stateSubscribe($STATE_SOCK);
+
+		# Unless LEADIN is active -- when video is paused updates are less frequent
+		if (!$leadin) {
+			print STDERR "Attempting to reconnect state socket...\n";
+			DMX::stateSubscribe($STATE_SOCK);
+		}
 	}
 
 	# Wait for state updates