diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-08-30 03:01:35 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-08-30 03:01:35 -0400 |
commit | 136f9a401663ecd80923046c680b770c6ab68207 (patch) | |
tree | 36fc71b387c23f37652d3313ded2208080fda8ea /scripts/xmppconfirmhandler.php | |
parent | ac85a4b0fa3785ac4e23d693e1cc87ed7eaa87cb (diff) |
don't clear old claims
darcs-hash:20080830070135-84dde-dc0cfc8e23c31c33617aa167f7c97d443b10539d.gz
Diffstat (limited to 'scripts/xmppconfirmhandler.php')
-rwxr-xr-x | scripts/xmppconfirmhandler.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/xmppconfirmhandler.php b/scripts/xmppconfirmhandler.php index 5c45f8c60..b6c1ee7a4 100755 --- a/scripts/xmppconfirmhandler.php +++ b/scripts/xmppconfirmhandler.php @@ -53,7 +53,6 @@ class XmppConfirmHandler { function handle_queue() { $this->log(LOG_INFO, 'checking for queued confirmations'); - $cnt = 0; do { $confirm = $this->next_confirm(); if ($confirm) { @@ -82,9 +81,8 @@ class XmppConfirmHandler { continue; } } - $cnt++; } else { - $this->clear_old_confirm_claims(); +# $this->clear_old_confirm_claims(); sleep(10); } } while (true); @@ -102,7 +100,7 @@ class XmppConfirmHandler { $this->log(LOG_INFO, 'Claiming confirmation for ' . $confirm->address); # working around some weird DB_DataObject behaviour $confirm->whereAdd(''); # clears where stuff - $original = clone($confirm); + $original = clone($confirm); $confirm->claimed = common_sql_now(); $result = $confirm->update($original); if ($result) { @@ -118,7 +116,7 @@ class XmppConfirmHandler { function clear_old_confirm_claims() { $confirm = new Confirm(); - $confirm->claimed = NULL; + $confirm->claimed = NULL; $confirm->whereAdd('now() - claimed > '.CLAIM_TIMEOUT); $confirm->update(DB_DATAOBJECT_WHEREADD_ONLY); } |