Skip to content

Commit 5412400

Browse files
committed
Restored limit for number of scans done on a single scan proxy.
1 parent 1f28c88 commit 5412400

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

VidCoder/Services/HandBrakeProxy/IScanProxy.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ namespace VidCoder.Services.HandBrakeProxy;
1111
/// </summary>
1212
public interface IScanProxy : IDisposable
1313
{
14-
/// <summary>
15-
/// Fires when the scan progress is updated.
16-
/// </summary>
17-
event EventHandler<EventArgs<float>> ScanProgress;
14+
/// <summary>
15+
/// Fires when the scan progress is updated.
16+
/// </summary>
17+
event EventHandler<EventArgs<float>> ScanProgress;
1818

19-
/// <summary>
20-
/// Fires when a scan has completed.
21-
/// </summary>
22-
event EventHandler<EventArgs<string>> ScanCompleted;
19+
/// <summary>
20+
/// Fires when a scan has completed.
21+
/// </summary>
22+
event EventHandler<EventArgs<string>> ScanCompleted;
2323

24-
void StartScan(string path, IAppLogger logger);
24+
void StartScan(string path, IAppLogger logger);
2525
}

VidCoder/Services/QueueAdderService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private void ScanNextJob()
9393
this.currentScan = this.pendingScans.Dequeue();
9494

9595
// Workaround to fix hang when scanning too many items at once
96-
if (this.scansDoneOnCurrentScanProxy > 200)
96+
if (this.scansDoneOnCurrentScanProxy > 35)
9797
{
9898
this.scanProxy.Dispose();
9999
this.scanProxy = null;

0 commit comments

Comments
 (0)