Skip to content

Commit

Permalink
use a timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartheek Penagamuri committed Dec 13, 2022
1 parent 84e5043 commit 08c3df1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void Run_WhenAThreadAbandonsMutexThenNextMigrationRunReleasesMutexAndCrea

void AbandonMutex()
{
_orphan.WaitOne();
_orphan.WaitOne(TimeSpan.FromMinutes(1), false);
// Abandon the mutex by exiting the method without releasing
}
}
Expand Down

0 comments on commit 08c3df1

Please sign in to comment.