Avahi.AddressResolver.Stop C# (CSharp) Method

Stop() private method

private Stop ( bool force ) : void
force bool
return void
        private void Stop(bool force)
        {
            if (client.Handle != IntPtr.Zero && handle != IntPtr.Zero &&
                (force || (foundListeners.Count == 0 && timeoutListeners.Count == 0))) {

                lock (client) {
                    avahi_address_resolver_free (handle);
                    handle = IntPtr.Zero;
                }
            }
        }