Update qamqpframe.cpp

I have a problem with method waitForBytesWritten.
Sometimes my application is locked when is called this method (timeout expired).
Although I try to modify writeTimeout (i.e. -1; 5 or 30), when timeout expires, rabbitMQ server disconnects me.

But if I try to delete it, it works!
My question is:
Why is this method necessary? What is its purpose?

Thank you!
This commit is contained in:
Ernesto De Stefano 2017-02-10 15:19:57 +01:00 committed by Matt Broadstone
parent d20aa2c89d
commit a0bc160ea1
1 changed files with 0 additions and 1 deletions

View File

@ -73,7 +73,6 @@ QDataStream &operator<<(QDataStream &stream, const QAmqpFrame &frame)
// write end // write end
stream << qint8(QAmqpFrame::FRAME_END); stream << qint8(QAmqpFrame::FRAME_END);
stream.device()->waitForBytesWritten(QAmqpFrame::writeTimeout());
return stream; return stream;
} }