aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/lcdproc/lcdproc.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/lcdproc/lcdproc.inc b/packages/lcdproc/lcdproc.inc
index f268d4b3..79a04cc2 100644
--- a/packages/lcdproc/lcdproc.inc
+++ b/packages/lcdproc/lcdproc.inc
@@ -276,7 +276,7 @@ EOD;
lcdproc_warn("Failed to interpret lcd commands");
return;
}
- $lcd = fsockopen(LCDPROC_HOST, LCDPROC_PORT, $errno, $errstr, 30);
+ $lcd = fsockopen($LCDPROC_HOST, $LCDPROC_PORT, $errno, $errstr, 30);
if (!$lcd) {
lcdproc_warn("Failed to connect to LCDd process $errstr ($errno)");
} else {
@@ -289,8 +289,8 @@ EOD;
lcdproc_notice("LCDd output for cmd $lcd_cmd is: $cmd_output");
usleep(100);
}
+ fclose($lcd);
}
- fclose($lcd);
}