summaryrefslogtreecommitdiffstats
path: root/polyp/iochannel.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/iochannel.c')
-rw-r--r--polyp/iochannel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/polyp/iochannel.c b/polyp/iochannel.c
index b93860a5..f174afd0 100644
--- a/polyp/iochannel.c
+++ b/polyp/iochannel.c
@@ -82,6 +82,9 @@ static void callback(struct pa_mainloop_api* m, struct pa_io_event *e, int fd, e
if (e == io->input_event) {
io->mainloop->io_free(io->input_event);
io->input_event = NULL;
+
+ if (io->output_event == e)
+ io->output_event = NULL;
}
if (e == io->output_event) {