Stop ...
()
| 170 | |
| 171 | // Stop ... |
| 172 | func (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 ... |
| 194 | func (pm *IOCScanner) Results() <-chan interface{} { |
nothing calls this directly
no test coverage detected