From bec2898567b17954aeafbbe25762a682f1525c0a Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 23 Mar 2016 14:27:42 -0400 Subject: [PATCH] Ensure that events also send the message to the socket through the proper thread/order. --- src/server/WebSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/WebSocket.cpp b/src/server/WebSocket.cpp index dd1dee6..7a30989 100644 --- a/src/server/WebSocket.cpp +++ b/src/server/WebSocket.cpp @@ -441,5 +441,5 @@ void WebSocket::EventUpdate(EventWatcher::EVENT_TYPE evtype, QJsonValue msg){ out.in_struct.name = EventWatcher::typeToString(evtype); qDebug() << "Send Event:" << out.assembleMessage(); //Now send the message back through the socket - this->sendReply(out.assembleMessage()); + this->emit SendMessage(out.assembleMessage()); }