asks for a server address again, when connection is failed

This commit is contained in:
2026-05-06 13:49:59 +03:00
parent a0d5fceb24
commit 324e87c445
4 changed files with 17 additions and 10 deletions
+4 -3
View File
@@ -25,9 +25,10 @@ void asa_modal_dialogue_callback(w_cb_args_t *args) {
switch (d_args.resp_data.val.val.num) {
case 1:
get_ip_port(app->params, in_ip->value, in_port->value);
connect_to_server(app);
d->needs_destroy = true;
app->query_args->state = S_WAIT_SERVER;
if (connect_to_server(app)) {
d->needs_destroy = true;
app->query_args->state = S_WAIT_SERVER;
}
break;
case 2:
app_destroy(app, 0);