Fix an issue where the app might not reconnect to the core.

This commit is contained in:
Michael Zanetti 2019-07-08 12:17:31 +02:00
parent 1ec4c98a5d
commit 87f130c55e

View File

@ -322,6 +322,8 @@ void JsonRpcClient::onInterfaceConnectedChanged(bool connected)
}
} else {
qDebug() << "JsonRpcClient: Transport connected. Starting handshake.";
// Clear anything that might be left in the buffer from a previous connection.
m_receiveBuffer.clear();
QVariantMap params;
params.insert("locale", QLocale().name());
sendCommand("JSONRPC.Hello", params, this, "helloReply");