summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sdpd/server.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sdpd/server.c b/sdpd/server.c
index 4316746b..eeda8a86 100644
--- a/sdpd/server.c
+++ b/sdpd/server.c
@@ -149,10 +149,8 @@ static gboolean io_session_event(GIOChannel *chan, GIOCondition cond, gpointer d
uint8_t *buf;
int sk, len, size;
- if (cond & (G_IO_HUP | G_IO_ERR)) {
- g_io_channel_unref(chan);
+ if (cond & (G_IO_HUP | G_IO_ERR))
return FALSE;
- }
sk = g_io_channel_unix_get_fd(chan);