clearLaunchState clears the launching state flags
(isPrimary bool, success bool)
| 748 | |
| 749 | // clearLaunchState clears the launching state flags |
| 750 | func (cm *ConnManager) clearLaunchState(isPrimary bool, success bool) { |
| 751 | cm.launchState.mu.Lock() |
| 752 | defer cm.launchState.mu.Unlock() |
| 753 | |
| 754 | if isPrimary { |
| 755 | cm.launchState.launchingPrimary = false |
| 756 | } else { |
| 757 | cm.launchState.launchingSecondary = false |
| 758 | } |
| 759 | |
| 760 | if success { |
| 761 | cm.launchState.failedAttempts = 0 |
| 762 | } else { |
| 763 | cm.launchState.failedAttempts++ |
| 764 | } |
| 765 | } |
no outgoing calls
no test coverage detected