mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
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:
parent
da4865dc7e
commit
727fe19043
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user