Quellcode durchsuchen

It's party time when we're on lockdown

Zachary Kotlarek vor 9 Jahren
Ursprung
Commit
3d3e275d3c
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      dmx/oil.pl

+ 2 - 0
dmx/oil.pl

@@ -91,6 +91,8 @@ while (1) {
 	my $enable = 0;
 	my $enable = 0;
 	if ($exists{'OIL_ENABLE'} && $mtime{'OIL_ENABLE'} > $now - $ENABLE_TIMEOUT) {
 	if ($exists{'OIL_ENABLE'} && $mtime{'OIL_ENABLE'} > $now - $ENABLE_TIMEOUT) {
 		$enable = 1;
 		$enable = 1;
+	} elsif ($exists{'LOCK'}) {
+		$enable = 1;
 	}
 	}
 
 
 	# Calculate the new state
 	# Calculate the new state