/** * If the service object has been retrieved, calls {@link #onClose} and release the reference. Otherwise, does nothing. */ @Override public synchronized void release() { ((DiscoveryImpl) discovery).unbind(this); if (service != null) { onClose(); service = null; } }
/** * If the service object has been retrieved, calls {@link #onClose} and release the reference. Otherwise, does nothing. */ @Override public synchronized void release() { ((DiscoveryImpl) discovery).unbind(this); if (service != null) { onClose(); service = null; } }