diff options
| author | Vincent Richard <[email protected]> | 2005-10-04 18:49:59 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2005-10-04 18:49:59 +0000 |
| commit | 3ec0f17ade68adec05f8b0af40c61a4f3a595b75 (patch) | |
| tree | 990440f5b6803c237c2d72ee298724df176f9e93 /src/net/imap/IMAPConnection.cpp | |
| parent | Added service::setSocketFactory(). (diff) | |
| download | vmime-3ec0f17ade68adec05f8b0af40c61a4f3a595b75.tar.gz vmime-3ec0f17ade68adec05f8b0af40c61a4f3a595b75.zip | |
Added service::setTimeoutHandlerFactory().
Diffstat (limited to 'src/net/imap/IMAPConnection.cpp')
| -rw-r--r-- | src/net/imap/IMAPConnection.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/net/imap/IMAPConnection.cpp b/src/net/imap/IMAPConnection.cpp index 180caa4b..69dfcb1e 100644 --- a/src/net/imap/IMAPConnection.cpp +++ b/src/net/imap/IMAPConnection.cpp @@ -85,13 +85,8 @@ void IMAPConnection::connect() const port_t port = GET_PROPERTY(port_t, PROPERTY_SERVER_PORT); // Create the time-out handler - if (HAS_PROPERTY(PROPERTY_TIMEOUT_FACTORY)) - { - timeoutHandlerFactory* tof = platformDependant::getHandler()-> - getTimeoutHandlerFactory(GET_PROPERTY(string, PROPERTY_TIMEOUT_FACTORY)); - - m_timeoutHandler = tof->create(); - } + if (m_store->getTimeoutHandlerFactory()) + m_timeoutHandler = m_store->getTimeoutHandlerFactory()->create(); // Create and connect the socket m_socket = m_store->getSocketFactory()->create(); |
