summaryrefslogtreecommitdiffstats
path: root/src/modules/module-esound-compat-spawnfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/module-esound-compat-spawnfd.c')
-rw-r--r--src/modules/module-esound-compat-spawnfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-esound-compat-spawnfd.c b/src/modules/module-esound-compat-spawnfd.c
index 890ebb16..46235c09 100644
--- a/src/modules/module-esound-compat-spawnfd.c
+++ b/src/modules/module-esound-compat-spawnfd.c
@@ -65,7 +65,7 @@ int pa__init(pa_module*m) {
if (pa_loop_write(fd, &x, sizeof(x), NULL) != sizeof(x))
pa_log_warn("WARNING: write(%u, 1, 1) failed: %s", fd, pa_cstrerror(errno));
- close(fd);
+ pa_assert_se(pa_close(fd) == 0);
pa_module_unload_request(m);