func StopService() { if service != nil && stopCh != nil { ui.Unregister(messageType) stopCh <- true service = nil log.Debug("Successfully stopped analytics service") } }
// Stop quits the local Lantern discovery process func Stop() { ui.Unregister(messageType) service = nil mc.LeaveMulticast() }