From a9a6f4b58411dadbb02ec75e0442f04f222f3c3a Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Wed, 27 May 2020 22:25:48 +0200 Subject: [PATCH] [outputs] Check for session in outputs_device_authorize() --- src/outputs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/outputs.c b/src/outputs.c index fb1dbb30..f5e7f2c8 100644 --- a/src/outputs.c +++ b/src/outputs.c @@ -950,6 +950,9 @@ outputs_device_authorize(struct output_device *device, const char *pin, output_s if (outputs[device->type]->disabled || !outputs[device->type]->device_authorize) return -1; + if (device->session) + return 0; // We are already connected to the device - no auth required + ret = outputs[device->type]->device_authorize(device, pin, callback_add(device, cb)); return device_state_update(device, ret);