Skip to content

Commit

Permalink
Bug fix: QObject::disconnect called when connection over websocket is…
Browse files Browse the repository at this point in the history
… closed.

Replaced with QWebSocket::close.

This bug was reported by Seunghyo Lee.
  • Loading branch information
ejvr committed Dec 27, 2017
1 parent 3b22b35 commit 0984b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mqtt/qmqtt_websocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void QMQTT::WebSocket::connectToHost(const QString& hostName, quint16 port)

void QMQTT::WebSocket::disconnectFromHost()
{
_socket->disconnect();
_socket->close();
}

QAbstractSocket::SocketState QMQTT::WebSocket::state() const
Expand Down

0 comments on commit 0984b3e

Please sign in to comment.