mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 08:02:13 +02:00
Replace deprecated g_io_channel_close with g_io_channel_shutdown.
g_io_channel_close flushes the buffer and does not return errors. g_io_channel_shutdown(handle, TRUE, NULL) keeps that behavior.
This commit is contained in:
parent
57f138c087
commit
138d4f4555
4 changed files with 9 additions and 9 deletions
|
|
@ -56,9 +56,9 @@ void server_connect_failed(SERVER_REC *server, const char *msg)
|
|||
}
|
||||
|
||||
if (server->connect_pipe[0] != NULL) {
|
||||
g_io_channel_close(server->connect_pipe[0]);
|
||||
g_io_channel_shutdown(server->connect_pipe[0], TRUE, NULL);
|
||||
g_io_channel_unref(server->connect_pipe[0]);
|
||||
g_io_channel_close(server->connect_pipe[1]);
|
||||
g_io_channel_shutdown(server->connect_pipe[1], TRUE, NULL);
|
||||
g_io_channel_unref(server->connect_pipe[1]);
|
||||
server->connect_pipe[0] = NULL;
|
||||
server->connect_pipe[1] = NULL;
|
||||
|
|
@ -274,9 +274,9 @@ static void server_connect_callback_readpipe(SERVER_REC *server)
|
|||
|
||||
net_gethostbyname_return(server->connect_pipe[0], &iprec);
|
||||
|
||||
g_io_channel_close(server->connect_pipe[0]);
|
||||
g_io_channel_shutdown(server->connect_pipe[0], TRUE, NULL);
|
||||
g_io_channel_unref(server->connect_pipe[0]);
|
||||
g_io_channel_close(server->connect_pipe[1]);
|
||||
g_io_channel_shutdown(server->connect_pipe[1], TRUE, NULL);
|
||||
g_io_channel_unref(server->connect_pipe[1]);
|
||||
|
||||
server->connect_pipe[0] = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue