aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/httpd_client.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-15 19:06:10 +0100
committerMax Kellermann <max@duempel.org>2009-03-15 19:06:10 +0100
commit58844aabac6407a95a8c2fb5ad22f969628c6bed (patch)
tree99e0befa7a14fd62b20790a8839ec09bd540832c /src/output/httpd_client.h
parent50c2dde5b50dcd864db362c47c859ea23f2ec16b (diff)
downloadmpd-58844aabac6407a95a8c2fb5ad22f969628c6bed.tar.gz
mpd-58844aabac6407a95a8c2fb5ad22f969628c6bed.tar.xz
mpd-58844aabac6407a95a8c2fb5ad22f969628c6bed.zip
httpd_output: clear the client's page queue on cancel
When the httpd output is cancelled, it freed all pages, but didn't remove them from the queue. Call g_queue_clear() and remove the write source id.
Diffstat (limited to '')
-rw-r--r--src/output/httpd_client.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/httpd_client.h b/src/output/httpd_client.h
index 56a0203a3..c81cdb12f 100644
--- a/src/output/httpd_client.h
+++ b/src/output/httpd_client.h
@@ -54,7 +54,7 @@ httpd_client_queue_size(const struct httpd_client *client);
* Clears the page queue.
*/
void
-httpd_client_cancel(const struct httpd_client *client);
+httpd_client_cancel(struct httpd_client *client);
/**
* Appends a page to the client's queue.