Skip to content

Commit

Permalink
change var name for template checker in router
Browse files Browse the repository at this point in the history
  • Loading branch information
Stella Cannefax committed Sep 20, 2019
1 parent a21242c commit 8a1d19d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Runtime/Scripts/Component/OscRouter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class OscRouter : MonoBehaviour
bool m_PrimaryCallbackAdded;
int m_PreviousServerCount;

readonly RegexDoubleActionMapper m_NewTemplateChecker = new RegexDoubleActionMapper();
readonly RegexDoubleActionMapper m_TemplateChecker = new RegexDoubleActionMapper();

[SerializeField]
int m_Port = 9000;
Expand Down Expand Up @@ -118,7 +118,7 @@ public static void AddCallbacks(string address, OscActionPair actionPair)
}

Instance.WildcardAddressHandlers.Add(address);
Instance.m_NewTemplateChecker.Add(PathUtils.RegexForWildcardPath(address), actionPair);
Instance.m_TemplateChecker.Add(PathUtils.RegexForWildcardPath(address), actionPair);
}

Instance.AddressHandlers[address] = actionPair;
Expand Down Expand Up @@ -188,7 +188,7 @@ protected void PrimaryCallback(string address, OscDataHandle handle)
if (!AddressHandlers.TryGetValue(address, out var actionPair))
{
// if we find a match in the template handlers, add a handler, otherwise ignore this address
if (m_NewTemplateChecker.Process(address, out var newActionPair))
if (m_TemplateChecker.Process(address, out var newActionPair))
{
AddCallbacks(address, newActionPair);
actionPair = newActionPair;
Expand Down

0 comments on commit 8a1d19d

Please sign in to comment.