| 274 | } |
| 275 | |
| 276 | void SMTPAsyncSession::setConnectionLogger(ConnectionLogger * logger) |
| 277 | { |
| 278 | pthread_mutex_lock(&mConnectionLoggerLock); |
| 279 | mConnectionLogger = logger; |
| 280 | pthread_mutex_unlock(&mConnectionLoggerLock); |
| 281 | if (logger != NULL) { |
| 282 | mSession->setConnectionLogger(mInternalLogger); |
| 283 | } |
| 284 | else { |
| 285 | mSession->setConnectionLogger(NULL); |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | ConnectionLogger * SMTPAsyncSession::connectionLogger() |
| 290 | { |