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:
David Hill 2014-06-15 15:23:29 -04:00
commit 138d4f4555
4 changed files with 9 additions and 9 deletions

View file

@ -260,7 +260,7 @@ void net_disconnect(GIOChannel *handle)
{
g_return_if_fail(handle != NULL);
g_io_channel_close(handle);
g_io_channel_shutdown(handle, TRUE, NULL);
g_io_channel_unref(handle);
}