summaryrefslogtreecommitdiff
path: root/src/core/servers.c
diff options
context:
space:
mode:
authorDavid Hill <dhill@conformal.com>2014-06-15 15:23:29 -0400
committerDavid Hill <dhill@conformal.com>2014-06-15 15:23:29 -0400
commit138d4f455512f7da22fd0cf53338888bdf640801 (patch)
tree8b8b36747581fe65f052863d8df00cfa4267f412 /src/core/servers.c
parent57f138c087b649b5bbbbcb75d455ef86f93297f4 (diff)
downloadirssi-138d4f455512f7da22fd0cf53338888bdf640801.zip
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.
Diffstat (limited to 'src/core/servers.c')
-rw-r--r--src/core/servers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/servers.c b/src/core/servers.c
index 4dac2b83..06f82d4d 100644
--- a/src/core/servers.c
+++ b/src/core/servers.c
@@ -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;