From 3ec0f17ade68adec05f8b0af40c61a4f3a595b75 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 4 Oct 2005 18:49:59 +0000 Subject: Added service::setTimeoutHandlerFactory(). --- src/net/pop3/POP3Store.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/net/pop3/POP3Store.cpp') 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(); -- cgit v1.2.3