Skip to content

Commit

Permalink
clearing plan
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Oct 22, 2023
1 parent 86eff22 commit 2380e7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/myrobotlab/service/Runtime.java
Original file line number Diff line number Diff line change
Expand Up @@ -4294,8 +4294,7 @@ public Plan getLocalPlan() {
*/
static public void clearPlan() {
Runtime runtime = Runtime.getInstance();
// fixes concurrent modification
runtime.masterPlan = new Plan("runtime");
runtime.masterPlan.clear();
runtime.masterPlan.put("runtime", new RuntimeConfig());
// unset config path
runtime.configName = null;
Expand Down

0 comments on commit 2380e7b

Please sign in to comment.