Skip to content

Commit

Permalink
Reduce ajax request frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Apr 19, 2010
1 parent 3b8513b commit 32bc477
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/asset/dmChessJavascriptConfig.php
Expand Up @@ -34,8 +34,8 @@ protected function getJavascriptConfig()
) : false,
'targets' => ($this->player->isMyTurn() && $this->player->Game->isStarted) ? $this->player->getTargetKeysByPieces() : null,
'beat' => array(
'url' => $this->helper->link('+/dmChessGame/whatsUp')->param('player', $this->player->code)->getHref(),
'delay' => 2000
'url' => $this->helper->link('@dm_chess_whatsup')->param('player', $this->player->code)->getHref(),
'delay' => 2500
),
'game' => array(
'code' => $this->player->Game->code,
Expand Down
2 changes: 0 additions & 2 deletions lib/crafty/dmChessCrafty.php
Expand Up @@ -41,15 +41,13 @@ protected function runPlayCommand($forsytheNotation)

if($code !== 0)
{
// dmDebug::kill($command, $return, $code, file($file));
throw new dmChessCraftyException(sprintf('Can not run crafty: '.$command.' '.$return));
}

$forsythe = $this->extractForsythe(file($file, FILE_IGNORE_NEW_LINES));

if(!$forsythe)
{
// dmDebug::kill($command, $return, $code, file($file));
throw new dmChessCraftyException(sprintf('Can not run crafty: '.$command.' '.$return));
}

Expand Down

0 comments on commit 32bc477

Please sign in to comment.