| 196 | } |
| 197 | |
| 198 | void SMTPAsyncSession::tryAutomaticDisconnect() |
| 199 | { |
| 200 | // It's safe since no thread is running when this function is called. |
| 201 | if (mSession->isDisconnected()) { |
| 202 | return; |
| 203 | } |
| 204 | |
| 205 | cancelDelayedPerformMethod((Object::Method) &SMTPAsyncSession::tryAutomaticDisconnectAfterDelay, NULL); |
| 206 | performMethodAfterDelay((Object::Method) &SMTPAsyncSession::tryAutomaticDisconnectAfterDelay, NULL, 30); |
| 207 | } |
| 208 | |
| 209 | void SMTPAsyncSession::tryAutomaticDisconnectAfterDelay(void * context) |
| 210 | { |
no test coverage detected