summaryrefslogtreecommitdiffstats
path: root/audio/main.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-02-19 15:58:15 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-02-19 16:23:10 -0300
commit10d6858927cb3db0a06c42f41cdb5f3175082df3 (patch)
tree84b4164449b747d56c0d4b86b205f80744162fc5 /audio/main.c
parente777c55aa7cd84fe63bcdee16acde8d1a293b928 (diff)
Make use of g_io_channel_shutdown instead of deprecated g_io_channel_close.
Diffstat (limited to 'audio/main.c')
-rw-r--r--audio/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/main.c b/audio/main.c
index 0e5afc42..c3b5bb56 100644
--- a/audio/main.c
+++ b/audio/main.c
@@ -111,7 +111,7 @@ static void sco_server_cb(GIOChannel *chan, GError *err, gpointer data)
return;
drop:
- g_io_channel_close(chan);
+ g_io_channel_shutdown(chan, TRUE, NULL);
}
static DBusConnection *connection;
@@ -150,7 +150,7 @@ static int audio_init(void)
static void audio_exit(void)
{
if (sco_server) {
- g_io_channel_close(sco_server);
+ g_io_channel_shutdown(sco_server, TRUE, NULL);
g_io_channel_unref(sco_server);
sco_server = NULL;
}