From fed14365f1c2c76ce0e37d7bb35a81caf788a9bf Mon Sep 17 00:00:00 2001 From: soukoku Date: Fri, 20 Jun 2014 22:21:02 -0400 Subject: [PATCH] More #10 fixes --- NTwain/Internals/TransferLogic.cs | 14 ++++++++------ NTwain/Properties/VersionInfo.cs | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/NTwain/Internals/TransferLogic.cs b/NTwain/Internals/TransferLogic.cs index 9fb6798..acff1bb 100644 --- a/NTwain/Internals/TransferLogic.cs +++ b/NTwain/Internals/TransferLogic.cs @@ -116,13 +116,15 @@ namespace NTwain.Internals #endregion - // some poorly written scanner drivers return failure on EndXfer so only check for pending count now - //} while (rc == ReturnCode.Success && pending.Count != 0); - } while (pending.Count != 0); - - session.ChangeState(5, true); - session.DisableSource(); + } while (rc == ReturnCode.Success && pending.Count != 0); + // some poorly written scanner drivers return failure on EndXfer so also check for pending count now + // this may break with other sources but we'll see + if (pending.Count == 0) + { + session.ChangeState(5, true); + session.DisableSource(); + } } #region audio xfers diff --git a/NTwain/Properties/VersionInfo.cs b/NTwain/Properties/VersionInfo.cs index 183c8b0..8d827f4 100644 --- a/NTwain/Properties/VersionInfo.cs +++ b/NTwain/Properties/VersionInfo.cs @@ -14,6 +14,6 @@ namespace NTwain // keep this same in majors releases public const string Release = "2.0.0.0"; // change this for each nuget release - public const string Build = "2.0.1"; + public const string Build = "2.0.2"; } } \ No newline at end of file