aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-10-05 20:52:52 +0200
committerMax Kellermann <max@duempel.org>2010-10-05 21:18:54 +0200
commit04c4398bfc648efef5d32209d26df24b71cc9f62 (patch)
treeea5079d713f1b20579ad4d6faa4fbdb58dabef4e
parent39e42394bdb3a6c1482602cc2bea59cb6a5b9277 (diff)
downloadmpd-04c4398bfc648efef5d32209d26df24b71cc9f62.tar.gz
mpd-04c4398bfc648efef5d32209d26df24b71cc9f62.tar.xz
mpd-04c4398bfc648efef5d32209d26df24b71cc9f62.zip
output/httpd: don't close socket in open() failure
This cleanup call is obsolete, since we moved the binding code to enable()/disable().
-rw-r--r--src/output/httpd_output_plugin.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/output/httpd_output_plugin.c b/src/output/httpd_output_plugin.c
index 43b635472..9f2d576eb 100644
--- a/src/output/httpd_output_plugin.c
+++ b/src/output/httpd_output_plugin.c
@@ -376,8 +376,6 @@ httpd_output_open(void *data, struct audio_format *audio_format,
success = httpd_output_encoder_open(httpd, audio_format, error);
if (!success) {
- g_source_remove(httpd->source_id);
- close(httpd->fd);
g_mutex_unlock(httpd->mutex);
return false;
}