mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 11:28:49 +00:00
Pumpio: Start the syncronisation as a forked process to avoid stale connections
This commit is contained in:
parent
d9a44c9fe7
commit
b2508c127f
2 changed files with 72 additions and 2 deletions
|
@ -603,8 +603,7 @@ function pumpio_action(&$a, $uid, $uri, $action, $content = "") {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function pumpio_cron(&$a,$b) {
|
||||
function pumpio_sync(&$a) {
|
||||
$last = get_config('pumpio','last_poll');
|
||||
|
||||
$poll_interval = intval(get_config('pumpio','poll_interval'));
|
||||
|
@ -667,6 +666,11 @@ function pumpio_cron(&$a,$b) {
|
|||
set_config('pumpio','last_poll', time());
|
||||
}
|
||||
|
||||
function pumpio_cron(&$a,$b) {
|
||||
//pumpio_sync($a);
|
||||
proc_run("php","addon/pumpio/pumpio_sync.php");
|
||||
}
|
||||
|
||||
function pumpio_fetchtimeline(&$a, $uid) {
|
||||
$ckey = get_pconfig($uid, 'pumpio', 'consumer_key');
|
||||
$csecret = get_pconfig($uid, 'pumpio', 'consumer_secret');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue