mirror of
https://github.com/soukoku/ntwain.git
synced 2025-09-18 17:47:57 +08:00
Changed xfer logic to not endxfer after reset.
This commit is contained in:
@@ -50,7 +50,9 @@ namespace NTwain.Internals
|
||||
{
|
||||
rc = session.DGControl.PendingXfers.Reset(pending);
|
||||
}
|
||||
else if (!preXferArgs.CancelCurrent)
|
||||
else
|
||||
{
|
||||
if (!preXferArgs.CancelCurrent)
|
||||
{
|
||||
DataGroups xferGroup = DataGroups.None;
|
||||
|
||||
@@ -106,7 +108,7 @@ namespace NTwain.Internals
|
||||
}
|
||||
}
|
||||
rc = session.DGControl.PendingXfers.EndXfer(pending);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
} while (rc == ReturnCode.Success && pending.Count != 0);
|
||||
|
Reference in New Issue
Block a user