- Temporarily remove message dialog with warning about connection problems, it causes lockups when executed from the reconnect thread
This commit is contained in:
parent
a2d37af516
commit
5f33ee8501
15
src/client.c
15
src/client.c
|
@ -1874,7 +1874,6 @@ gboolean
|
|||
gkrellm_client_mode_connect(void)
|
||||
{
|
||||
gchar buf[128];
|
||||
GtkWidget* dlg;
|
||||
|
||||
if (_GK.server_port == 0)
|
||||
_GK.server_port = GKRELLMD_SERVER_PORT;
|
||||
|
@ -1882,13 +1881,6 @@ gkrellm_client_mode_connect(void)
|
|||
client_fd = gkrellm_connect_to(_GK.server, _GK.server_port);
|
||||
if (client_fd < 0) {
|
||||
g_warning("%s\n", _("Unable to connect."));
|
||||
|
||||
dlg = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL,
|
||||
GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
|
||||
"Unable to connect to server '%s:%d'",
|
||||
_GK.server, _GK.server_port);
|
||||
gtk_dialog_run(GTK_DIALOG(dlg));
|
||||
gtk_widget_destroy(dlg);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -1902,13 +1894,6 @@ gkrellm_client_mode_connect(void)
|
|||
if(!read_server_setup(client_fd)){
|
||||
|
||||
close(client_fd);
|
||||
|
||||
dlg = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL,
|
||||
GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
|
||||
"Initial setup with server '%s:%d' failed.",
|
||||
_GK.server, _GK.server_port);
|
||||
gtk_dialog_run(GTK_DIALOG(dlg));
|
||||
gtk_widget_destroy(dlg);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue