When calling g_io_channel_shutdown(), the file descriptor is closed.
Calling the close in the __destroy_client_channel() is not needed.
Change-Id: I443253f29c000adcdae87f74c415b00de75223af
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
g_rec_mutex_unlock(&channel->mutex);
g_rec_mutex_clear(&channel->mutex);
- if (channel->fd > -1)
- close(channel->fd);
-
free(channel);
}
_E("Failed to add io job. error(%d)", ret);
__remove_client_channel(channel);
__destroy_client_channel(channel);
+ close(clifd);
return true;
}