summaryrefslogtreecommitdiffstats
path: root/src/polyp
diff options
context:
space:
mode:
Diffstat (limited to 'src/polyp')
-rw-r--r--src/polyp/context.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/polyp/context.c b/src/polyp/context.c
index c16b54b4..7c0ed190 100644
--- a/src/polyp/context.c
+++ b/src/polyp/context.c
@@ -728,7 +728,11 @@ int pa_context_is_pending(pa_context *c) {
assert(c);
assert(c->ref >= 1);
- PA_CHECK_VALIDITY(c, c->state == PA_CONTEXT_READY, PA_ERR_BADSTATE);
+ PA_CHECK_VALIDITY(c,
+ c->state == PA_CONTEXT_CONNECTING ||
+ c->state == PA_CONTEXT_AUTHORIZING ||
+ c->state == PA_CONTEXT_SETTING_NAME ||
+ c->state == PA_CONTEXT_READY, PA_ERR_BADSTATE);
return (c->pstream && pa_pstream_is_pending(c->pstream)) ||
(c->pdispatch && pa_pdispatch_is_pending(c->pdispatch)) ||