stopRunner
()
| 82 | |
| 83 | // stopRunner |
| 84 | func (info *RuntimeInfo) stopRunner() { |
| 85 | info.runtimeWaitGroup.Wait() |
| 86 | |
| 87 | info.invokeLock.Lock() |
| 88 | defer info.invokeLock.Unlock() |
| 89 | |
| 90 | info.runnerConn.Close() |
| 91 | // suspect or check: https://github.com/golang/go/issues/28446 |
| 92 | if info.State == RuntimeStateMerged || info.State == RuntimeStateReclaiming { |
| 93 | return |
| 94 | } |
| 95 | info.SetState(RuntimeStateClosed) |
| 96 | } |
| 97 | |
| 98 | // runnerUpdate |
| 99 | func (info *RuntimeInfo) runnerUpdate() { |
no test coverage detected