couple of frphoto fixes to work better with the dreamhost process reaper

This commit is contained in:
friendica 2014-08-12 20:39:57 -07:00
parent 50da5bd389
commit 40667e72ad
2 changed files with 8 additions and 1 deletions

View File

@ -41,6 +41,14 @@ function frphotos_init(&$a) {
$total = 0;
if(count($j)) {
foreach($j as $jj) {
$r = q("select uid from photo where resource_id = '%s' and uid = %d limit 1",
dbesc($jj),
intval($channel['channel_id'])
);
if($r)
continue;
$total ++;
proc_run('php','util/frphotohelper.php',$jj, $channel['channel_address'], urlencode($fr_server));
sleep(3);

View File

@ -60,7 +60,6 @@ $cookies = 'store/[data]/frphoto_cookie_' . $channel_address;
intval($channel['channel_id'])
);
if($r) {
logger('frphotohelper: duplicate photo ignored');
killme();
}