mirror of
https://github.com/cyanfish/naps2.git
synced 2024-08-17 03:00:21 +03:00
Mac: Show no pages in feeder error
This commit is contained in:
parent
986a09d4dd
commit
15b1c599fd
@ -311,6 +311,11 @@ internal class DeviceOperator : ICScannerDeviceDelegate
|
||||
{
|
||||
copyTasks = _copyTasks.ToArray();
|
||||
}
|
||||
if (copyTasks.Length == 0 && _unit is ICScannerFunctionalUnitDocumentFeeder { DocumentLoaded: false })
|
||||
{
|
||||
_logger.LogDebug("ICC: No pages in feeder");
|
||||
throw new NoPagesException();
|
||||
}
|
||||
_logger.LogDebug("ICC: Waiting for scan results");
|
||||
await Task.WhenAll(copyTasks);
|
||||
_logger.LogDebug("ICC: Closing session");
|
||||
|
Loading…
Reference in New Issue
Block a user