aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/audio/audio-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/audio/audio-api.c')
-rw-r--r--plugins/audio/audio-api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/audio/audio-api.c b/plugins/audio/audio-api.c
index 3877ce5b..8350377d 100644
--- a/plugins/audio/audio-api.c
+++ b/plugins/audio/audio-api.c
@@ -64,7 +64,8 @@ STATIC json_object* init (AFB_request *request) { /* AFB_SESSION_CHECK */
int idx;
/* create a private client context */
- request->context = initAudioCtx();
+ if (!request->context)
+ request->context = initAudioCtx();
_alsa_init("default", request->context);