Skip to content

Commit e003e4d

Browse files
committed
fix: move ChangeScenario outside of loop, remove the discard modifier
1 parent e2cdb12 commit e003e4d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/PepperDash.Essentials.Core/Room/Combining/EssentialsRoomCombiner.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,10 @@ public void SetRoomCombinationScenario(string scenarioKey)
445445
else
446446
{
447447
Debug.LogMessage(LogEventLevel.Debug, this, "Unable to find partition with key: '{0}'", partitionState.PartitionKey);
448-
}
449-
// Sets the scenario while disregarding the returned task. This prevents current scenario from being null when starting in manual mode.
450-
_ = ChangeScenario(scenario);
448+
}
451449
}
450+
// Activates the scenario to prevent _currentScenario from being null when starting in manual mode.
451+
ChangeScenario(scenario);
452452
}
453453
else
454454
{

0 commit comments

Comments
 (0)