From 4eb0ffc554aa92ca2ecccc18278caff220618e9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 10 Aug 2017 10:44:44 +0200 Subject: [PATCH] vmount: update control_data if already_active is true control_data needs to be able to be set to nullptr in case if the input is already active. Otherwise the output will think there's always new requests and reset it's state. --- src/drivers/vmount/vmount.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/vmount/vmount.cpp b/src/drivers/vmount/vmount.cpp index b9734ed867..f0439ba791 100644 --- a/src/drivers/vmount/vmount.cpp +++ b/src/drivers/vmount/vmount.cpp @@ -337,7 +337,7 @@ static int vmount_thread_main(int argc, char *argv[]) continue; } - if (control_data_to_check != nullptr) { + if (control_data_to_check != nullptr || already_active) { control_data = control_data_to_check; last_active = i; }