diff options
Diffstat (limited to 'lib/libtdekrb/src/tdekrbclientsocket.cpp')
-rw-r--r-- | lib/libtdekrb/src/tdekrbclientsocket.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libtdekrb/src/tdekrbclientsocket.cpp b/lib/libtdekrb/src/tdekrbclientsocket.cpp index 4bf840b..ce5842e 100644 --- a/lib/libtdekrb/src/tdekrbclientsocket.cpp +++ b/lib/libtdekrb/src/tdekrbclientsocket.cpp @@ -763,8 +763,10 @@ int TDEKerberosClientSocket::writeEndOfFrame() { return ret; } -bool TDEKerberosClientSocket::canReadFrame() { - processPendingData(); +bool TDEKerberosClientSocket::canReadFrame(bool callProcessPendingData) { + if (callProcessPendingData) { + processPendingData(); + } if (m_readBufferLength > 0) { if (m_readBuffer->buffer().find(255, m_readBufferReadPointer) >= 0) { return true; |