aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/pop3/POP3Store.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-10-04 18:49:59 +0000
committerVincent Richard <[email protected]>2005-10-04 18:49:59 +0000
commit3ec0f17ade68adec05f8b0af40c61a4f3a595b75 (patch)
tree990440f5b6803c237c2d72ee298724df176f9e93 /src/net/pop3/POP3Store.cpp
parentAdded service::setSocketFactory(). (diff)
downloadvmime-3ec0f17ade68adec05f8b0af40c61a4f3a595b75.tar.gz
vmime-3ec0f17ade68adec05f8b0af40c61a4f3a595b75.zip
Added service::setTimeoutHandlerFactory().
Diffstat (limited to 'src/net/pop3/POP3Store.cpp')
-rw-r--r--src/net/pop3/POP3Store.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/net/pop3/POP3Store.cpp b/src/net/pop3/POP3Store.cpp
index 4c3ba224..1b15c9f6 100644
--- a/src/net/pop3/POP3Store.cpp
+++ b/src/net/pop3/POP3Store.cpp
@@ -123,13 +123,8 @@ void POP3Store::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 (getTimeoutHandlerFactory())
+ m_timeoutHandler = getTimeoutHandlerFactory()->create();
// Create and connect the socket
m_socket = getSocketFactory()->create();