summaryrefslogtreecommitdiff
path: root/CSharp
diff options
context:
space:
mode:
Diffstat (limited to 'CSharp')
-rw-r--r--CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs b/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs
index 8776dd7..70c31b0 100644
--- a/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs
+++ b/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs
@@ -162,7 +162,7 @@ namespace IvyBus
bool IvyProtocol.receiveMsg()
{
- Ivy.ApplicationBinding bind = new Ivy.ApplicationBinding();
+ Ivy.ApplicationBinding bind;
MessageType msgType = MessageType.Die;
ushort msgId = 0;
string msgData = null;
@@ -184,6 +184,8 @@ namespace IvyBus
break;
case MessageType.AddRegexp:
+
+ bind = new Ivy.ApplicationBinding();
bind.type = Ivy.BindingType.BindRegexp;
bind.key = msgId;
bind.expression = msgData;