We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 979a36b commit 26c2236Copy full SHA for 26c2236
src/SmallSharp/MonitorActiveDocument.cs
@@ -32,7 +32,7 @@ public override bool Execute()
32
if (BuildEngine4.GetRegisteredTaskObject(nameof(ActiveDocumentMonitor), RegisteredTaskObjectLifetime.AppDomain) is not ActiveDocumentMonitor monitor)
33
{
34
var maxAttempts = 5;
35
- for (var i = 0; i < maxAttempts; i++)
+ for (var i = 1; i <= maxAttempts; i++)
36
37
if (WindowsInterop.GetServiceProvider() is IServiceProvider services)
38
@@ -53,7 +53,8 @@ public override bool Execute()
53
54
Debug.WriteLine(e);
55
}
56
- Thread.Sleep(200);
+ // Increase the wait time to allow more time between retries
57
+ Thread.Sleep(200 * i);
58
59
60
0 commit comments