Double the timer value but no more than maxTime. Lots of UDP connection timers in SIP use this.
| 156 | } |
| 157 | // Double the timer value but no more than maxTime. Lots of UDP connection timers in SIP use this. |
| 158 | void setDouble(unsigned maxTime=10000) { |
| 159 | assert(mLimitTime!=0); |
| 160 | unsigned long newTime = mLimitTime * 2; |
| 161 | if (newTime > maxTime) { newTime = maxTime; } |
| 162 | set(mLimitTime * 2); |
| 163 | } |
| 164 | void stop() { mActive = false; } |
| 165 | |
| 166 |
no outgoing calls
no test coverage detected