diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2006-11-05 04:37:48 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2006-11-05 04:37:48 +0000 |
| commit | e8ced8e902092d5ea0575a065cada2025506249d (patch) | |
| tree | b0f57fbaf52b07f3ca2a3ec8defac3cf921d9ccd | |
| parent | 5930a7cde8b11cede642e4f1ac0efb6ec06cb19d (diff) | |
| download | libbu++-e8ced8e902092d5ea0575a065cada2025506249d.tar.gz libbu++-e8ced8e902092d5ea0575a065cada2025506249d.tar.bz2 libbu++-e8ced8e902092d5ea0575a065cada2025506249d.tar.xz libbu++-e8ced8e902092d5ea0575a065cada2025506249d.zip | |
Fixed the rest of the connection manager.
Diffstat (limited to '')
| -rw-r--r-- | src/connectionmanager.cpp | 4 |
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 | } |
