summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-24 13:30:41 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-24 13:30:41 +0200
commit5e9267c991331ef09ffcc28d306c78c57a2654a4 (patch)
tree9ef91e21e50fec34aa715c875428ebaa7a60ff55
parentf48c24c3d758934fa5d3edfd49c9a2bced272e5b (diff)
Don't call g_io_channel_shutdown if the session was removed
In this rather unusual scenario g_io_channel_shutdown will already have been called so attempting it again would cause a GLib warning.
-rw-r--r--audio/avdtp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index 95e5d178..27a75d24 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1832,7 +1832,6 @@ static void avdtp_connect_cb(GIOChannel *chan, GError *err, gpointer user_data)
if (!g_slist_find(sessions, session)) {
debug("avdtp_connect_cb: session got removed");
- g_io_channel_shutdown(chan, TRUE, NULL);
return;
}