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 {
|
} else {
|
||||||
qDebug() << "JsonRpcClient: Transport connected. Starting handshake.";
|
qDebug() << "JsonRpcClient: Transport connected. Starting handshake.";
|
||||||
|
// Clear anything that might be left in the buffer from a previous connection.
|
||||||
|
m_receiveBuffer.clear();
|
||||||
QVariantMap params;
|
QVariantMap params;
|
||||||
params.insert("locale", QLocale().name());
|
params.insert("locale", QLocale().name());
|
||||||
sendCommand("JSONRPC.Hello", params, this, "helloReply");
|
sendCommand("JSONRPC.Hello", params, this, "helloReply");
|
||||||
|
|||||||
Reference in New Issue
Block a user