From 5bffae621979f37740cbfc7d97adf15f95e6c6e8 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 31 Aug 2017 23:21:06 -0700 Subject: cut down on a few extraneous gprobe processes --- include/channel.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/channel.php') diff --git a/include/channel.php b/include/channel.php index efa39dcac..faf28df28 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1616,13 +1616,15 @@ function get_my_address() { function zid_init() { $tmp_str = get_my_address(); if(validate_email($tmp_str)) { - Zotlabs\Daemon\Master::Summon(array('Gprobe',bin2hex($tmp_str))); $arr = array('zid' => $tmp_str, 'url' => App::$cmd); call_hooks('zid_init',$arr); if(! local_channel()) { $r = q("select * from hubloc where hubloc_addr = '%s' order by hubloc_connected desc limit 1", dbesc($tmp_str) ); + if(! $r) { + Zotlabs\Daemon\Master::Summon(array('Gprobe',bin2hex($tmp_str))); + } if($r && remote_channel() && remote_channel() === $r[0]['hubloc_hash']) return; logger('zid_init: not authenticated. Invoking reverse magic-auth for ' . $tmp_str); -- cgit v1.2.3