summaryrefslogtreecommitdiff
path: root/vdr-vdrmanager/handler.cpp
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2013-04-03 09:58:02 +0200
committerlado <herrlado@gmail.com>2013-04-03 09:58:02 +0200
commit17c8d505c9bb272c520a778b58d3e8a579f89fab (patch)
treea2a6abe974854a27e5fcf9f2f62d07ac047354d8 /vdr-vdrmanager/handler.cpp
parent10164a068cead3c4b64e01b09faf2c418adc8ea2 (diff)
downloadvdr-manager-17c8d505c9bb272c520a778b58d3e8a579f89fab.tar.gz
vdr-manager-17c8d505c9bb272c520a778b58d3e8a579f89fab.tar.bz2
current changes
Diffstat (limited to 'vdr-vdrmanager/handler.cpp')
-rw-r--r--vdr-vdrmanager/handler.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/vdr-vdrmanager/handler.cpp b/vdr-vdrmanager/handler.cpp
index ea15296..43b500a 100644
--- a/vdr-vdrmanager/handler.cpp
+++ b/vdr-vdrmanager/handler.cpp
@@ -17,8 +17,6 @@ bool cHandler::HandleNewClient(cVdrmanagerClientSocket * sock)
bool cHandler::HandleClientRequest(cVdrmanagerClientSocket * sock)
{
- bool closeSocket = true;
-
while(sock->Read())
{
// get lines
@@ -50,12 +48,6 @@ bool cHandler::HandleClientRequest(cVdrmanagerClientSocket * sock)
sock->SetLoggedIn();
sock->PutLine("!OK\r\n");
}
- closeSocket = false;
- }
- else if (cmd == "COMPRESS")
- {
- sock->ActivateCompression();
- closeSocket = false;
}
else if (cmd == "TIMERS")
{
@@ -105,15 +97,9 @@ bool cHandler::HandleClientRequest(cVdrmanagerClientSocket * sock)
else if (cmd == "QUIT")
{
// close socket
- sock->PutLine(string("Good bye! :-)\r\n"));
+ sock->PutLine(string("Good bye! :-)\n"));
sock->Disconnect();
}
-
- if (closeSocket) {
- sock->Disconnect();
- }
-
- sock->Flush();
}
}