Skip to content

Commit 2302c40

Browse files
committed
feat: Add log lines if retainer window not closing as expected
1 parent f278ed8 commit 2302c40

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Retainers/RetainerRoutine.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,15 @@ public static async Task<bool> DeSelectRetainer()
338338

339339
RetainerTasks.CloseTasks();
340340

341-
await Coroutine.Wait(13000, () => DialogOpen || SelectYesno.IsOpen);
341+
if (!await Coroutine.Wait(5000, () => !RetainerTasks.IsOpen ))
342+
{
343+
Log.Error("Could not close retainer task window");
344+
}
345+
346+
if (!await Coroutine.Wait(13000, () => DialogOpen || SelectYesno.IsOpen))
347+
{
348+
Log.Error("Could not find dialog or select yesno");
349+
}
342350

343351
if (SelectYesno.IsOpen)
344352
{

0 commit comments

Comments
 (0)