projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1504f66
)
Notify.php
author
Alan Knowles
<alan@roojs.com>
Mon, 29 Apr 2013 03:12:10 +0000
(11:12 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 29 Apr 2013 03:12:10 +0000
(11:12 +0800)
Notify.php
patch
|
blob
|
history
diff --git
a/Notify.php
b/Notify.php
index
9106b40
..
45f365f
100644
(file)
--- a/
Notify.php
+++ b/
Notify.php
@@
-197,6
+197,7
@@
class Pman_Core_Notify extends Pman
//echo "BATCH SIZE: ". count($ar) . "\n";
$pushed = array();
+ $requeue = array();
while (true) {
@@
-209,7
+210,7
@@
class Pman_Core_Notify extends Pman
break;
}
$ar = $pushed;
- $pushed =
array()
;
+ $pushed =
false
;
continue;
}
@@
-222,6
+223,11
@@
class Pman_Core_Notify extends Pman
}
if ($this->poolHasDomain($p->person_id_email)) {
+ if ($pushed === false) {
+ // we only try once to requeue..
+ $requeue[] = $p;
+ continue;
+ }
$pushed[] = $p;