summaryrefslogtreecommitdiff
path: root/examples/websockets/echoserver
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-02-13 11:32:23 +0100
committerLiang Qi <liang.qi@theqtcompany.com>2015-02-20 11:57:56 +0000
commitdc936eaab18e709faa5154a21a269d0fe54521af (patch)
treef9e710fba2d6cae83c8cec13a644fbe9a519f632 /examples/websockets/echoserver
parent8ebed733e872ded507256addf932e19e1b6ed2b6 (diff)
downloadqtwebsockets-dc936eaab18e709faa5154a21a269d0fe54521af.tar.gz
Example: echoserver should not close when it got a new connection
Otherwise it's just a onetime server. Change-Id: Ida516614e72cac1635062a04a6f1f9e1c56753da Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'examples/websockets/echoserver')
-rw-r--r--examples/websockets/echoserver/echoserver.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/websockets/echoserver/echoserver.cpp b/examples/websockets/echoserver/echoserver.cpp
index a3109fa..196b00b 100644
--- a/examples/websockets/echoserver/echoserver.cpp
+++ b/examples/websockets/echoserver/echoserver.cpp
@@ -83,7 +83,6 @@ void EchoServer::processTextMessage(QString message)
if (pClient) {
pClient->sendTextMessage(message);
}
- m_pWebSocketServer->close();
}
//! [processTextMessage]