mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Merge pull request #453 from G10h4ck/libresapilocal
ApiLocalConnectionHandler class quit() at the end outside if
This commit is contained in:
commit
48b2e05e9a
@ -52,19 +52,12 @@ void ApiLocalConnectionHandler::handleRequest()
|
|||||||
std::string resultString = mApiServer->handleRequest(req);
|
std::string resultString = mApiServer->handleRequest(req);
|
||||||
mLocalSocket->write(resultString.c_str(), resultString.length());
|
mLocalSocket->write(resultString.c_str(), resultString.length());
|
||||||
mLocalSocket->write("\n\0");
|
mLocalSocket->write("\n\0");
|
||||||
|
}
|
||||||
|
else mLocalSocket->write("\"{\"data\":null,\"debug_msg\":\"ApiLocalConnectionHandler::handleRequest() Error: timeout waiting for path.\\n\",\"returncode\":\"fail\"}\"\n\0");
|
||||||
|
}
|
||||||
|
else mLocalSocket->write("{\"data\":null,\"debug_msg\":\"ApiLocalConnectionHandler::handleRequest() Error: timeout waiting for JSON data.\\n\",\"returncode\":\"fail\"}\"\n\0");
|
||||||
|
|
||||||
quit();
|
quit();
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mLocalSocket->write("\"{\"data\":null,\"debug_msg\":\"ApiLocalConnectionHandler::handleRequest() Error: timeout waiting for path.\\n\",\"returncode\":\"fail\"}\"\n\0");
|
|
||||||
quit();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mLocalSocket->write("{\"data\":null,\"debug_msg\":\"ApiLocalConnectionHandler::handleRequest() Error: timeout waiting for JSON data.\\n\",\"returncode\":\"fail\"}\"\n\0");
|
|
||||||
quit();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ApiLocalConnectionHandler::~ApiLocalConnectionHandler()
|
ApiLocalConnectionHandler::~ApiLocalConnectionHandler()
|
||||||
|
Loading…
Reference in New Issue
Block a user