MCPcopy
hub / github.com/evilsocket/opensnitch / Stop

Method Stop

daemon/tasks/iocscanner/main.go:172–191  ·  view source on GitHub ↗

Stop ...

()

Source from the content-addressed store, hash-verified

170
171// Stop ...
172func (pm *IOCScanner) Stop() error {
173 pm.mu.Lock()
174 defer pm.mu.Unlock()
175 log.Debug("[IOCScanner] Stop()")
176
177 if pm.StopOnDisconnect {
178 log.Debug("[IOCScanner] ignoring Stop()")
179 return nil
180 }
181
182 for _, t := range pm.Tools {
183 log.Debug("[IOCScanner] stopping tool %s", t.GetProperty(baseT.PropName))
184 t.Stop()
185 }
186
187 if pm.Cancel != nil {
188 pm.Cancel()
189 }
190 return nil
191}
192
193// Results ...
194func (pm *IOCScanner) Results() <-chan interface{} {

Callers

nothing calls this directly

Calls 4

LockMethod · 0.80
UnlockMethod · 0.80
GetPropertyMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected