Skip to content

Commit

Permalink
Bugfix: remainingDevicesToRegister was not immutable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Whathecode committed Nov 10, 2020
1 parent 2108f93 commit 523ecc9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class StudyRuntime private constructor(
when {
deploymentInformation == null -> StudyRuntimeStatus.NotReadyForDeployment( id )
remainingDevicesToRegister.isNotEmpty() ->
StudyRuntimeStatus.RegisteringDevices( id, deploymentInformation!!, remainingDevicesToRegister )
StudyRuntimeStatus.RegisteringDevices( id, deploymentInformation!!, remainingDevicesToRegister.toList() )
isStopped -> StudyRuntimeStatus.Stopped( id, deploymentInformation!! )
isDeployed -> StudyRuntimeStatus.Deployed( id, deploymentInformation!! )
else -> error( "Unexpected study runtime state." )
Expand Down

0 comments on commit 523ecc9

Please sign in to comment.