summaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client.c b/src/client.c
index eb06c52f..7f1648a7 100644
--- a/src/client.c
+++ b/src/client.c
@@ -39,8 +39,12 @@ void pa_client_free(struct pa_client *c) {
void pa_client_kill(struct pa_client *c) {
assert(c);
- if (c->kill)
- c->kill(c);
+ if (!c->kill) {
+ fprintf(stderr, "kill() operation not implemented for client %u\n", c->index);
+ return;
+ }
+
+ c->kill(c);
}
char *pa_client_list_to_string(struct pa_core *c) {