diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2014-01-26 18:04:05 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-01 20:12:57 +0100 |
commit | d6d679caa4ebaf6d78e134976e48f7c4aeadf02f (patch) | |
tree | 922372c8a2844ff3a735cdfb43f954f4c07dd14f /src/websockets/qwebsocket.cpp | |
parent | 9c2cfa330e113cb76f1adc870d653deba3a035f8 (diff) | |
download | qtwebsockets-d6d679caa4ebaf6d78e134976e48f7c4aeadf02f.tar.gz |
Adapt isValid to only return true when socket is in connected state
Changed isValid() to only return true when the socket is also in connected
state. Also updated the documentation.
Change-Id: Id80dbc1f28c82bef19984c5ed7b34a7d474ee011
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocket.cpp')
-rw-r--r-- | src/websockets/qwebsocket.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/websockets/qwebsocket.cpp b/src/websockets/qwebsocket.cpp index 39998cc..b500853 100644 --- a/src/websockets/qwebsocket.cpp +++ b/src/websockets/qwebsocket.cpp @@ -678,7 +678,8 @@ void QWebSocket::setReadBufferSize(qint64 size) } /*! - Returns true if the QWebSocket is valid. + Returns \c true if the socket is ready for reading and writing; otherwise + returns \c false. */ bool QWebSocket::isValid() const { |