diff --git a/src/NTwain/TwainSession.cs b/src/NTwain/TwainSession.cs index 7adedbe..e522009 100644 --- a/src/NTwain/TwainSession.cs +++ b/src/NTwain/TwainSession.cs @@ -54,6 +54,10 @@ namespace NTwain rc = DGControl.Parent.CloseDSM(ref _hWnd); if (rc != ReturnCode.Success) return rc; break; + case TwainState.SourceOpened: + rc = DGControl.Identity.CloseDS(CurrentSource.Identity); + if (rc != ReturnCode.Success) return rc; + break; } } return rc;