From a0bc160ea17416f2dfcb456113b2587676135f5a Mon Sep 17 00:00:00 2001 From: Ernesto De Stefano Date: Fri, 10 Feb 2017 15:19:57 +0100 Subject: [PATCH] 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! --- src/qamqpframe.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/qamqpframe.cpp b/src/qamqpframe.cpp index d74a364..b7c9ae2 100644 --- a/src/qamqpframe.cpp +++ b/src/qamqpframe.cpp @@ -73,7 +73,6 @@ QDataStream &operator<<(QDataStream &stream, const QAmqpFrame &frame) // write end stream << qint8(QAmqpFrame::FRAME_END); - stream.device()->waitForBytesWritten(QAmqpFrame::writeTimeout()); return stream; }