From dbb9c2d778ffee4b42af33cf416994fecf84aaed Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Tue, 5 Dec 2023 10:41:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=95=8C=E9=9D=A2=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=89=AB=E6=8F=8F=EF=BC=8C=E6=97=A0=E5=9B=BE=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E5=90=8E=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=B0=83=E7=94=A8?= =?UTF-8?q?notifyCloseCancel=E4=BB=A5=E9=80=9A=E7=9F=A5APP=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E5=BD=93=E5=89=8D=E7=8A=B6=E6=80=81=E3=80=82for=20BUG?= =?UTF-8?q?-808=20and=20BUG-811?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twain/twain/huagaods.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/twain/twain/huagaods.cpp b/twain/twain/huagaods.cpp index 277118f..c7a356a 100644 --- a/twain/twain/huagaods.cpp +++ b/twain/twain/huagaods.cpp @@ -3904,8 +3904,9 @@ int huagao_ds::handle_scanner_event(int ev, bool from_event_proc) load_sane_util::log_info(msg, 1); scanner_status_ = SCANNER_STATUS_STOPPED; - if(bUiOnly_) - rc = notifyCloseCancel(); + + // start from UI, start faile should notifyCloseCancel to complete this turn: BUG-808 + rc = notifyCloseCancel(); if (Twpp::success(rc)) { scanner_status_ = SCANNER_STATUS_READY;