diff --git a/src/core/ui_about.c b/src/core/ui_about.c index 6ab3988..1a23d79 100644 --- a/src/core/ui_about.c +++ b/src/core/ui_about.c @@ -14,7 +14,6 @@ void show_about_dialog() gtk_about_dialog_set_authors(about_dialog, (gchar**)authors); gtk_about_dialog_set_license_type(about_dialog, GTK_LICENSE_GPL_3_0); gtk_about_dialog_set_logo_icon_name(about_dialog, "mail-message-new-symbolic"); - // Отображение диалогового окна "О программе" gtk_widget_show_all(GTK_WIDGET(about_dialog)); diff --git a/src/core/ui_authorize.c b/src/core/ui_authorize.c index c9b7671..f67169c 100644 --- a/src/core/ui_authorize.c +++ b/src/core/ui_authorize.c @@ -320,7 +320,7 @@ int tea_get_server_id(const char *serverURI) { int id = 1; - while(*serverURI && (id *= 1 | (int) *(serverURI++))) + while(*serverURI && (id *= (1 | (int) *(serverURI++)))) ; return id; diff --git a/src/net/tea_net_api.c b/src/net/tea_net_api.c index a060fef..9f49b0f 100644 --- a/src/net/tea_net_api.c +++ b/src/net/tea_net_api.c @@ -119,8 +119,14 @@ int net_send(const char *url, const char *body, size_t len, struct net_responce_ net_stats.active_requests--; if(net_result == CURLE_OK) - { ++net_stats.success_req; + else + ++net_stats.error_req; + + g_mutex_unlock(&nmutex); + + if(net_result == CURLE_OK) + { for(int x = 0; x < receiver->size; ++x) { if(receiver->raw_data[x] == '{') @@ -132,8 +138,6 @@ int net_send(const char *url, const char *body, size_t len, struct net_responce_ } else { - ++net_stats.error_req; - if(receiver->raw_data) { free(receiver->raw_data); @@ -145,8 +149,6 @@ int net_send(const char *url, const char *body, size_t len, struct net_responce_ #endif } - g_mutex_unlock(&nmutex); - receiver->net_status = net_result; // if(net_result == CURLE_OK){