diff --git a/src/runtime2/branch.rs b/src/runtime2/branch.rs index a2a9221a466b21ce5b0dba5fcc3ddd14149c17b2..f3fa84c5ee325768f51d0ca69ce14f834f95e02e 100644 --- a/src/runtime2/branch.rs +++ b/src/runtime2/branch.rs @@ -422,7 +422,7 @@ impl FakeTree { } fn is_in_sync(&self) -> bool { - return !self.branches.is_empty(); + return self.branches.len() > 1; } pub fn queue_is_empty(&self, kind: QueueKind) -> bool { @@ -460,7 +460,7 @@ impl FakeTree { debug_assert!(!self.is_in_sync()); // Create the first branch - let sync_branch = FakeBranch::new_root(0); + let sync_branch = FakeBranch::new_root(1); let sync_branch_id = sync_branch.id; self.branches.push(sync_branch);