Skip to content

Commit

Permalink
Merge pull request #9 from shoghicp/patch-1
Browse files Browse the repository at this point in the history
Fixes "Too many open files"
  • Loading branch information
Humerus committed Jan 14, 2015
2 parents e0a5452 + eaa93a0 commit 81e553d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PocketDockConsole/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public function onEnable() {
$this->reloadConfig();
$this->getLogger()->info(TextFormat::DARK_GREEN . "Enabled");
$this->setPassword();
$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"));
$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"));
@fclose($pluginIndex);
$this->rc = new RunCommand($this);
$this->getServer()->getScheduler()->scheduleRepeatingTask($this->rc, 1);
$this->lastBufferLine = "";
Expand Down

0 comments on commit 81e553d

Please sign in to comment.