Skip to content

Commit

Permalink
Merge pull request #35 from Schroedingers-Cat/master
Browse files Browse the repository at this point in the history
Improve performance of SendMessageToClient() calls (#24)
  • Loading branch information
jorgegarcia authored Nov 24, 2018
2 parents 49218c5 + 7a4f573 commit d773aaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/OSC/OSCPacket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public string Address
}
set
{
Trace.Assert(string.IsNullOrEmpty(_address) == false);
Trace.Assert(string.IsNullOrEmpty(value) == false);
_address = value;
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/OSCHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ void OnApplicationQuit()
/// </param>
public void CreateClient(string clientId, IPAddress destination, int port)
{
if (_clients.ContainsKey(clientId)) {
return;
}
ClientLog clientitem = new ClientLog();
clientitem.client = new OSCClient(destination, port);
clientitem.log = new List<string>();
Expand Down

0 comments on commit d773aaf

Please sign in to comment.