workaround for stalling worker processes when running the daemon
This commit is contained in:
		
					parent
					
						
							
								3792e2819d
							
						
					
				
			
			
				commit
				
					
						3cb7a7606e
					
				
			
		
					 4 changed files with 10 additions and 8 deletions
				
			
		|  | @ -564,15 +564,16 @@ class GContact | |||
| 
 | ||||
| 		if (strlen(Config::get('system', 'directory'))) { | ||||
| 			$x = Network::fetchUrl(get_server()."/pubsites"); | ||||
| 			if ($x) { | ||||
| 			if (!empty($x)) { | ||||
| 				$j = json_decode($x); | ||||
| 				if ($j->entries) { | ||||
| 				if (!empty($j->entries)) { | ||||
| 					foreach ($j->entries as $entry) { | ||||
| 						PortableContact::checkServer($entry->url); | ||||
| 
 | ||||
| 						$url = $entry->url . '/poco'; | ||||
| 						if (! in_array($url, $done)) { | ||||
| 							PortableContact::loadWorker(0, 0, 0, $entry->url . '/poco'); | ||||
| 						if (!in_array($url, $done)) { | ||||
| 							PortableContact::loadWorker(0, 0, 0, $url); | ||||
| 							$done[] = $url; | ||||
| 						} | ||||
| 					} | ||||
| 				} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue