Skip to content

Commit

Permalink
[Gtk] Fix possible error when re-scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Nov 20, 2023
1 parent a29173e commit d7c12c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gtk/src/scanner/ScannerSane.cc
Expand Up @@ -542,6 +542,8 @@ void ScannerSane::doCompletePage() {
void ScannerSane::doStop() {
if(m_job != nullptr) {
if(m_job->handle != nullptr) {
g_debug("sane_cancel()");
sane_cancel(m_job->handle);
g_debug("sane_close()");
sane_close(m_job->handle);
}
Expand Down

0 comments on commit d7c12c2

Please sign in to comment.