summaryrefslogtreecommitdiff
path: root/src/websockets/qwebsocket.cpp
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2014-01-26 18:04:05 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-01 20:12:57 +0100
commitd6d679caa4ebaf6d78e134976e48f7c4aeadf02f (patch)
tree922372c8a2844ff3a735cdfb43f954f4c07dd14f /src/websockets/qwebsocket.cpp
parent9c2cfa330e113cb76f1adc870d653deba3a035f8 (diff)
downloadqtwebsockets-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.cpp3
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
{