]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateContacts.php
version 2021.03-dev
[friendica.git] / src / Worker / UpdateContacts.php
index bf234d989c0983923434cebe869040708433609a..c1f38a3b43b976b68d04ed4f016176b6cac29ba3 100644 (file)
@@ -74,8 +74,9 @@ class UpdateContacts
 
                $count = 0;
                foreach ($ids as $id) {
-                       Worker::add(PRIORITY_LOW, "UpdateContact", $id);
-                       ++$count;
+                       if (Worker::add(PRIORITY_LOW, "UpdateContact", $id)) {
+                               ++$count;
+                       }
                }
 
                Logger::info('Initiated update for federated contacts', ['count' => $count]);