small things

This commit is contained in:
Shoghi Cervantes
2014-02-15 01:39:37 +01:00
parent 9301c04e1f
commit d699a97bb7
4 changed files with 13 additions and 10 deletions

View File

@@ -210,8 +210,8 @@ class Player{
$c = key($this->chunksOrder);
$d = @$this->chunksOrder[$c];
if($c === null){
$this->server->schedule(50, array($this, "getNextChunk"));
if($c === null or $d === null){
$this->server->schedule(40, array($this, "getNextChunk"));
return false;
}
unset($this->chunksOrder[$c]);