]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
do not set option when scanner is started
authorBastian Dehn <hhaalo@arcor.de>
Mon, 26 Feb 2024 19:17:20 +0000 (20:17 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 26 Feb 2024 19:17:20 +0000 (20:17 +0100)
src/kds_s2000w_handler_opts.c

index c1250d7acb32608234f5416df63d8d9dba46fff1..4e7243e491d3326e5809d2028797fa19a9501e74 100644 (file)
@@ -239,6 +239,9 @@ void kds_s2000w_handler_get_option(handler* h, int option, void* value, int* inf
 
 void kds_s2000w_handler_set_option(handler* h, int option, void* value, int* info)
 {
+       if (h->read_info->scan_started)
+               return;
+
        config = json_object_object_get(resp_config, "Configuration");
        json_object* value_object = NULL;
        switch(option) {