This commit is contained in:
Vitaliy Zhmurikov 2025-06-04 03:33:38 +10:00 committed by GitHub
commit d8fccbb03a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,7 +110,7 @@ namespace NTwain.Internals
}
}
if (rc != ReturnCode.Success && session.StopOnTransferError)
if (rc != ReturnCode.XferDone && session.StopOnTransferError)
{
// end xfer without setting rc to exit (good/bad?)
session.DGControl.PendingXfers.Reset(pending);