summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--network/server.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/network/server.c b/network/server.c
index 4c5658f6..b8021436 100644
--- a/network/server.c
+++ b/network/server.c
@@ -798,9 +798,6 @@ static int record_and_listen(struct network_server *ns)
ns->record_id = add_server_record(ns);
if (!ns->record_id) {
error("Unable to register the server(0x%x) service record", ns->id);
- g_io_channel_close(bnep_io);
- g_io_channel_unref(bnep_io);
- bnep_io = NULL;
return -EIO;
}