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