Removed restart command due to a huge memory leak

... Caused by free'd objects looped looping around itself calling each
one and become HAL
This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-12 00:27:14 +01:00
parent fb019a88c1
commit c15f8cfda6
5 changed files with 10 additions and 5 deletions

View File

@ -242,7 +242,7 @@ class PocketMinecraftServer extends stdClass{
public function start(){
declare(ticks=15);
register_tick_function(array($this, "tick"));
$this->event("onTick", "tickerFunction", true);
$this->event("onTick", array($this, "tickerFunction"));
$this->event("onReceivedPacket", "packetHandler", true);
register_shutdown_function(array($this, "close"));
$this->loadMap();