aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/connectionmanager.cpp4
1 files changed, 3 insertions, 1 deletions
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 )
184 } 184 }
185 } 185 }
186 } 186 }
187 printf("Scanning %d connections.\n", lActive.size() );
187 std::list<Connection *>::iterator i; 188 std::list<Connection *>::iterator i;
188 for( i = lActive.begin(); i != lActive.end(); i++ ) 189 for( i = lActive.begin(); i != lActive.end(); i++ )
189 { 190 {
@@ -341,7 +342,8 @@ void ConnectionManager::connect(
341 342
342 pCon->setProtocol( pNewProto ); 343 pCon->setProtocol( pNewProto );
343 pMonitor->onNewClientConnection( pCon, nProtocolPort ); 344 pMonitor->onNewClientConnection( pCon, nProtocolPort );
344 //pCon->getProtocol()->onNewClientConnection(); 345 if( pCon->getProtocol() )
346 pCon->getProtocol()->onNewClientConnection();
345 347
346 lActive.insert( lActive.end(), pCon ); 348 lActive.insert( lActive.end(), pCon );
347} 349}