diff options
Diffstat (limited to 'sapbtpeer.cc')
-rw-r--r-- | sapbtpeer.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sapbtpeer.cc b/sapbtpeer.cc index e026a4c..3926cdf 100644 --- a/sapbtpeer.cc +++ b/sapbtpeer.cc @@ -27,6 +27,7 @@ void SAPBTPeer::handleSocketData() while ((_curFrameLength == 0 && bytes >= header_size) || (_curFrameLength > 0 && bytes >= _curFrameLength + footer_size)) { if (_curFrameLength > 0) { + // We are waiting for a full frame of known length QByteArray frame = _socket->read(_curFrameLength); Q_ASSERT(frame.size() == (int)_curFrameLength); _curFrameLength = 0; |