Skip to content

Commit 7fe58ef

Browse files
Auto-release instance when released upstream
1 parent f6ec99f commit 7fe58ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

UnityMapper/Instances/SignalCollection.cs

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ public void Update()
6565
var status = _signal.FetchStatus((long) id);
6666
if (status.HasFlag(Signal.StatusFlags.ReleaseUpstream))
6767
{
68+
if (_spec.Ephemeral)
69+
{
70+
_signal.Release(id);
71+
}
6872
_signals[id].Property.Reset();
6973
continue;
7074
}

0 commit comments

Comments
 (0)