コード例 #1
0
ファイル: analytics.go プロジェクト: shizhh/lantern
func StopService() {
	if service != nil && stopCh != nil {
		ui.Unregister(messageType)
		stopCh <- true
		service = nil
		log.Debug("Successfully stopped analytics service")
	}
}
コード例 #2
0
ファイル: localdiscovery.go プロジェクト: Christeefym/lantern
// Stop quits the local Lantern discovery process
func Stop() {
	ui.Unregister(messageType)
	service = nil
	mc.LeaveMulticast()
}