| 237 | } |
| 238 | |
| 239 | void POPAsyncSession::setConnectionLogger(ConnectionLogger * logger) |
| 240 | { |
| 241 | pthread_mutex_lock(&mConnectionLoggerLock); |
| 242 | mConnectionLogger = logger; |
| 243 | pthread_mutex_unlock(&mConnectionLoggerLock); |
| 244 | if (logger != NULL) { |
| 245 | mSession->setConnectionLogger(mInternalLogger); |
| 246 | } |
| 247 | else { |
| 248 | mSession->setConnectionLogger(NULL); |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | ConnectionLogger * POPAsyncSession::connectionLogger() |
| 253 | { |