Migrate webapp detection calls to PortMapper.isRegistered()

This commit is contained in:
zzz
2018-04-25 14:21:23 +00:00
parent 49ba58cb8d
commit ab9dac8827
14 changed files with 28 additions and 21 deletions

View File

@@ -438,6 +438,6 @@ public class NamingServiceBean extends AddressbookBean
* @since 0.9.34
*/
public boolean haveImagegen() {
return _context.portMapper().getPort("imagegen") > 0;
return _context.portMapper().isRegistered("imagegen");
}
}

View File

@@ -144,7 +144,7 @@ public class SubscriptionsBean extends BaseBean
// config reload and fetch.
*******/
if (content != null && content.length() > 2 &&
_context.portMapper().getPort(PortMapper.SVC_HTTP_PROXY) > 0) {
_context.portMapper().isRegistered(PortMapper.SVC_HTTP_PROXY)) {
message = _t("Subscriptions saved, updating addressbook from subscription sources now.");
// + "<img height=\"1\" width=\"1\" alt=\"\" " +
// "src=\"/addressbook/?wakeup=1&nonce=" + nonce + "\">";