| 47 | } |
| 48 | |
| 49 | type handlerNotifier struct { |
| 50 | sync.Mutex |
| 51 | runningConnectionStates bool |
| 52 | runningCandidates bool |
| 53 | runningCandidatePairs bool |
| 54 | notifiers sync.WaitGroup |
| 55 | |
| 56 | connectionStates []ConnectionState |
| 57 | connectionStateFunc func(ConnectionState) |
| 58 | |
| 59 | candidates []Candidate |
| 60 | candidateFunc func(Candidate) |
| 61 | |
| 62 | selectedCandidatePairs []*CandidatePair |
| 63 | candidatePairFunc func(*CandidatePair) |
| 64 | |
| 65 | // State for closing |
| 66 | done chan struct{} |
| 67 | } |
| 68 | |
| 69 | func (h *handlerNotifier) Close(graceful bool) { |
| 70 | if graceful { |
nothing calls this directly
no outgoing calls
no test coverage detected