Skip to content

Commit 81e553d

Browse files
committed
Merge pull request #9 from shoghicp/patch-1
Fixes "Too many open files"
2 parents e0a5452 + eaa93a0 commit 81e553d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PocketDockConsole/Main.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public function onEnable() {
2424
$this->reloadConfig();
2525
$this->getLogger()->info(TextFormat::DARK_GREEN . "Enabled");
2626
$this->setPassword();
27-
$this->thread = new SocksServer("0.0.0.0", $this->getConfig()->get("port"), $this->getServer()->getLogger(), $this->getServer()->getLoader(), $this->getConfig()->get("password"), stream_get_contents($this->getResource("PluginIndex.html")), $this->getConfig()->get("backlog"));
27+
$this->thread = new SocksServer("0.0.0.0", $this->getConfig()->get("port"), $this->getServer()->getLogger(), $this->getServer()->getLoader(), $this->getConfig()->get("password"), stream_get_contents($pluginIndex = $this->getResource("PluginIndex.html")), $this->getConfig()->get("backlog"));
28+
@fclose($pluginIndex);
2829
$this->rc = new RunCommand($this);
2930
$this->getServer()->getScheduler()->scheduleRepeatingTask($this->rc, 1);
3031
$this->lastBufferLine = "";

0 commit comments

Comments
 (0)