From 0f3093d7a86310b3bc71a07c8096dab7b33e5770 Mon Sep 17 00:00:00 2001 From: bruno-f-cruz <7049351+bruno-f-cruz@users.noreply.github.com> Date: Tue, 25 Jun 2024 14:02:32 -0700 Subject: [PATCH] Fix racing condition with null post-patch sites --- src/vr-foraging.bonsai | 98 ++++++++++++++++++++++++------------------ 1 file changed, 56 insertions(+), 42 deletions(-) diff --git a/src/vr-foraging.bonsai b/src/vr-foraging.bonsai index c2fb23c..b4d3db7 100644 --- a/src/vr-foraging.bonsai +++ b/src/vr-foraging.bonsai @@ -8334,25 +8334,6 @@ Item2 as Start Foraging - - ActivePatch - - - VirtualSiteGeneration.PostPatch - - - IsNull - it == null - - - - - 1 - - - - HasPostPatch - PT0S @@ -8706,19 +8687,34 @@ Item2 as Start HasNotPostPatch + + Source1 + - HasPostPatch + ActivePatch - - - false - + + VirtualSiteGeneration.PostPatch + + + IsNull + it == null + + + + + + Item2 - + + + + + @@ -8726,13 +8722,36 @@ Item2 as Start HasPostPatch + + Source1 + - HasPostPatch + ActivePatch + + + VirtualSiteGeneration.PostPatch + + + IsNull + it == null + + + + + + + Item2 - + + + + + + + @@ -8844,27 +8863,22 @@ Item2 as Start - + - + + - - + + + - - + + - - - + + - - - - - -