diff options
Diffstat (limited to 'CSharp')
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyClient.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyClient.cs b/CSharp/Ivy/IvyPPC/IvyClient.cs index faddee4..9451265 100644 --- a/CSharp/Ivy/IvyPPC/IvyClient.cs +++ b/CSharp/Ivy/IvyPPC/IvyClient.cs @@ -161,9 +161,12 @@ namespace IvyBus // initiate the connexion
send(MessageType.StartRegexp, bus.applicationPort, bus.appName);
// sends our regexps to the peer
- foreach (Int32 ikey in bus.regexp_out.Keys )
+ lock( bus.regexp_out.SyncRoot )
{
- sendRegexp(ikey, (String) bus.regexp_out[ikey]);
+ foreach (Int32 ikey in bus.regexp_out.Keys )
+ {
+ sendRegexp(ikey, (String) bus.regexp_out[ikey]);
+ }
}
send(MessageType.EndRegexp, 0, "");
// spawns a thread to manage the incoming traffic on this
|