diff options
author | Friendika <info@friendika.com> | 2011-08-28 21:41:42 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-28 21:41:42 -0700 |
commit | 846c4cea7c0e3868a63a187ee9a504a031b2a7e4 (patch) | |
tree | 034407e183dfb95ce9ef77cbe6a5af73377e2090 /include/delivery.php | |
parent | f29f228463d35f574d6d285be0cf337b7d39c541 (diff) | |
download | volse-hubzilla-846c4cea7c0e3868a63a187ee9a504a031b2a7e4.tar.gz volse-hubzilla-846c4cea7c0e3868a63a187ee9a504a031b2a7e4.tar.bz2 volse-hubzilla-846c4cea7c0e3868a63a187ee9a504a031b2a7e4.zip |
implement delivery queue in case notifier gets killed
Diffstat (limited to 'include/delivery.php')
-rw-r--r-- | include/delivery.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/delivery.php b/include/delivery.php index 0df8ea7e4..1f5883c26 100644 --- a/include/delivery.php +++ b/include/delivery.php @@ -37,6 +37,12 @@ function delivery_run($argv, $argc){ $item_id = intval($argv[2]); $contact_id = intval($argv[3]); + q("delete from deliverq where cmd = '%s' and item = %d and contact = %d limit 1", + dbesc($cmd), + dbesc($item_id), + dbesc($contact_id) + ); + if((! $item_id) || (! $contact_id)) return; |