diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php index 228a96762..655929f52 100644 --- a/src/Protocol/PortableContact.php +++ b/src/Protocol/PortableContact.php @@ -488,7 +488,7 @@ class PortableContact } Logger::log('Update directory from server ' . $gserver['url'] . ' with ID ' . $gserver['id'], Logger::DEBUG); - Worker::add(PRIORITY_LOW, 'DiscoverPoCo', 'update_server_directory', (int) $gserver['id']); + Worker::add(PRIORITY_LOW, 'UpdateServerDirectory', (int)$gserver['id']); if (!$complete && ( --$no_of_queries == 0)) { break; diff --git a/src/Worker/DiscoverPoCo.php b/src/Worker/DiscoverPoCo.php index 2c3536bf8..47071e20c 100644 --- a/src/Worker/DiscoverPoCo.php +++ b/src/Worker/DiscoverPoCo.php @@ -30,7 +30,6 @@ class DiscoverPoCo - suggestions: Discover other servers for their contacts. - server : Searches for the poco server list. "poco url" is base64 encoded. - update_server: Frequently check the first 250 servers for vitality. - - update_server_directory: Discover the given server id for their contacts - PortableContact::load: Load POCO data from a given POCO address */ @@ -59,8 +58,6 @@ class DiscoverPoCo Logger::log($result, Logger::DEBUG); } elseif ($command == "update_server") { self::updateServer(); - } elseif ($command == "update_server_directory") { - PortableContact::discoverSingleServer(intval($param1)); } elseif ($command == "load") { if (!empty($param4)) { $url = $param4; diff --git a/src/Worker/UpdateServerDirectory.php b/src/Worker/UpdateServerDirectory.php new file mode 100644 index 000000000..df87b20dc --- /dev/null +++ b/src/Worker/UpdateServerDirectory.php @@ -0,0 +1,18 @@ +