From e8ced8e902092d5ea0575a065cada2025506249d Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 5 Nov 2006 04:37:48 +0000 Subject: Fixed the rest of the connection manager. --- src/connectionmanager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/connectionmanager.cpp') diff --git a/src/connectionmanager.cpp b/src/connectionmanager.cpp index f674c99..d806618 100644 --- a/src/connectionmanager.cpp +++ b/src/connectionmanager.cpp @@ -184,6 +184,7 @@ bool ConnectionManager::scanConnections( int nTimeout, bool bForceTimeout ) } } } + printf("Scanning %d connections.\n", lActive.size() ); std::list::iterator i; for( i = lActive.begin(); i != lActive.end(); i++ ) { @@ -341,7 +342,8 @@ void ConnectionManager::connect( pCon->setProtocol( pNewProto ); pMonitor->onNewClientConnection( pCon, nProtocolPort ); - //pCon->getProtocol()->onNewClientConnection(); + if( pCon->getProtocol() ) + pCon->getProtocol()->onNewClientConnection(); lActive.insert( lActive.end(), pCon ); } -- cgit v1.2.3