Make sure to init from phrase when trying a new server during restore

This commit is contained in:
Duke
2023-03-26 08:15:53 -07:00
parent 51483843ac
commit 89bf5b0f7c

View File

@@ -222,7 +222,8 @@ MainWindow::MainWindow(QWidget *parent) :
config->server = Settings::getRandomServer();
qDebug() << __func__ << ": new server is " << config->server;
// retry with the new server
char* resp = litelib_initialize_new(config->dangerous,config->server.toStdString().c_str());
char* resp = litelib_initialize_new_from_phrase(config->dangerous,config->server.toStdString().c_str(),
seed.toStdString().c_str(), birthday, number);
reply = litelib_process_response(resp);
}