summaryrefslogtreecommitdiffstats
path: root/polyp
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-09-15 23:48:09 +0000
committerLennart Poettering <lennart@poettering.net>2005-09-15 23:48:09 +0000
commitfda09b92555bcd9b8e3cbd710557c1b0784cd697 (patch)
tree53657372d1e490c5626624917c8f1e7c04038953 /polyp
parentf1da8ade63568aec84e7f2bc6b92acbd77f5a13c (diff)
remove esound protocol directory on unload of module-protocol-esound
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@347 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp')
-rw-r--r--polyp/module-protocol-stub.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/polyp/module-protocol-stub.c b/polyp/module-protocol-stub.c
index be27b8e2..15697582 100644
--- a/polyp/module-protocol-stub.c
+++ b/polyp/module-protocol-stub.c
@@ -240,5 +240,12 @@ finish:
void pa__done(struct pa_core *c, struct pa_module*m) {
assert(c && m);
+#if defined(USE_PROTOCOL_ESOUND)
+ if (remove (ESD_UNIX_SOCKET_NAME) != 0)
+ pa_log("%s: Failed to remove %s : %s.\n", __FILE__, ESD_UNIX_SOCKET_NAME, strerror (errno));
+ if (remove (ESD_UNIX_SOCKET_DIR) != 0)
+ pa_log("%s: Failed to remove %s : %s.\n", __FILE__, ESD_UNIX_SOCKET_DIR, strerror (errno));
+#endif
+
protocol_free(m->userdata);
}