Fix an issue where the app might not reconnect to the core.
This commit is contained in:
parent
1ec4c98a5d
commit
87f130c55e
@ -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");
|
||||
|
||||
Reference in New Issue
Block a user