Removed unnecessary intervention lock

Only one intervention should be firing, even without the lock.  If multiple are being fired, then it's likely the UserIntervention.Handle isn't awaiting all its "goals" properly within its own call
This commit is contained in:
Justin Swanson 2020-08-08 08:22:12 -05:00
parent da4865dc7e
commit 727fe19043

View File

@ -76,14 +76,11 @@ namespace Wabbajack
.Subscribe()
.DisposeWith(CompositeDisposable);
var singleton_lock = new AsyncLock();
Utils.LogMessages
.OfType<IUserIntervention>()
.ObserveOnGuiThread()
.SelectTask(async msg =>
{
using var _ = await singleton_lock.WaitAsync();
try
{
await UserInterventionHandlers.Handle(msg);