[TASK] Code cleanup and some small documentation.

This commit is contained in:
Jan Philipp Timme
2010-11-28 16:51:43 +00:00
parent a20a91bf12
commit db9dda856c
7 changed files with 24 additions and 9 deletions
+3 -3
View File
@@ -90,8 +90,8 @@ class Client_ClientManager {
//assign the client to the new connectionHandler.
$this->clientPool[$newConnectionHandler->getID()] = $client;
//get the config and assign it to the new connectionHandler, too.
$config = $this->configPool[$connectionHandler->getID()];
$this->configPool[$newConnectionHandler->getID()] = $config;
$config = $this->configPool[$connectionHandler->getID()];
$this->configPool[$newConnectionHandler->getID()] = $config;
//remove old connection
$this->removeConnection($connectionHandler);
}
@@ -109,7 +109,7 @@ class Client_ClientManager {
}
//call the registered client
if(isset($this->clientPool[$connectionHandler->getID()])) {
//let the client process the data, send the results back.
//let the client process the data, send the results back.
while($data = $connectionHandler->read()) {
$result = $this->clientPool[$connectionHandler->getID()]->processRawData($data);
if($result !== "") {