Skip to content
Snippets Groups Projects
Commit 01f90cf9 authored by jpbl's avatar jpbl
Browse files

We receive as much lines as we can now

parent 2acec898
Branches
Tags
No related merge requests found
......@@ -50,7 +50,6 @@ RequesterImpl::send(const QString &sessionId,
const QString &command,
const std::list< QString > &args)
{
DebugOutput::instance() << QObject::tr("Requester: Trying to create command \"%1\"\n").arg(command);
// We retreive the internal of a session.
SessionIO *session = getSessionIO(sessionId);
......@@ -133,7 +132,9 @@ RequesterImpl::receiveAnswer(const QString &code,
std::map< QString, Request * >::iterator pos;
pos = mRequests.find(sequence);
if(pos == mRequests.end()) {
_debug("Requester: We received an answer with an unknown sequence.\n");
DebugOutput::instance() << QObject::tr("Requester: We received an answer "
"with an unknown sequence (%1).\n")
.arg(sequence);
return;
}
......
......@@ -58,8 +58,10 @@ void
TCPSessionIO::receive()
{
QString s;
receive(s);
Requester::instance().receiveAnswer(s);
while(mSocket->canReadLine()) {
receive(s);
Requester::instance().receiveAnswer(s);
}
}
void
......
......@@ -128,9 +128,6 @@ void
VolumeControl::updateSlider(int value)
{
if(mOrientation == VolumeControl::Vertical) {
std::cout << "Move again to : " <<
(float)value / (mMax - mMin) * mMaxPosition <<
std::endl << std::endl;
mSlider->move(mSlider->x(), (float)value / (mMax - mMin) * mMaxPosition);
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment