mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
With some systems Irssi didn't notice if connect() failed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@232 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
48b409ea14
commit
96020e6999
3 changed files with 4 additions and 4 deletions
|
|
@ -155,7 +155,7 @@ static void server_connect_callback_readpipe(SERVER_REC *server, int handle)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
server->connect_tag = g_input_add(server->handle, G_INPUT_WRITE|G_INPUT_READ,
|
server->connect_tag = g_input_add(server->handle, G_INPUT_WRITE|G_INPUT_READ|G_INPUT_EXCEPTION,
|
||||||
(GInputFunction) server_connect_callback_init, server);
|
(GInputFunction) server_connect_callback_init, server);
|
||||||
signal_emit("server connecting", 2, server, &iprec.ip);
|
signal_emit("server connecting", 2, server, &iprec.ip);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -290,7 +290,7 @@ static void cmd_dcc_chat(gchar *data, IRC_SERVER_REC *server)
|
||||||
source_host_ok ? source_host_ip : NULL);
|
source_host_ok ? source_host_ip : NULL);
|
||||||
if (dcc->handle != -1)
|
if (dcc->handle != -1)
|
||||||
{
|
{
|
||||||
dcc->tagread = g_input_add(dcc->handle, G_INPUT_WRITE,
|
dcc->tagread = g_input_add(dcc->handle, G_INPUT_WRITE|G_INPUT_READ|G_INPUT_EXCEPTION,
|
||||||
(GInputFunction) dcc_chat_connect, dcc);
|
(GInputFunction) dcc_chat_connect, dcc);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ static void cmd_dcc_get(gchar *data)
|
||||||
source_host_ok ? source_host_ip : NULL);
|
source_host_ok ? source_host_ip : NULL);
|
||||||
if (dcc->handle != -1)
|
if (dcc->handle != -1)
|
||||||
{
|
{
|
||||||
dcc->tagread = g_input_add(dcc->handle, G_INPUT_WRITE,
|
dcc->tagread = g_input_add(dcc->handle, G_INPUT_WRITE|G_INPUT_READ|G_INPUT_EXCEPTION,
|
||||||
(GInputFunction) dcc_get_connect, dcc);
|
(GInputFunction) dcc_get_connect, dcc);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -227,7 +227,7 @@ static void dcc_resume_setup(DCC_REC *dcc, gint port)
|
||||||
source_host_ok ? source_host_ip : NULL);
|
source_host_ok ? source_host_ip : NULL);
|
||||||
if (dcc->handle != -1)
|
if (dcc->handle != -1)
|
||||||
{
|
{
|
||||||
dcc->tagread = g_input_add(dcc->handle, G_INPUT_WRITE,
|
dcc->tagread = g_input_add(dcc->handle, G_INPUT_WRITE|G_INPUT_READ|G_INPUT_EXCEPTION,
|
||||||
(GInputFunction) dcc_get_connect, dcc);
|
(GInputFunction) dcc_get_connect, dcc);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue