From 36df73bc9f6c6f7f36be6893a04fddab2a125c46 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:57:41 +0000 Subject: Utilisateur : Fcolin Date : 4/11/03 Heure : 12:01 Archivé dans $/EScribe/Ivy Commentaire: (vss 10) --- CSharp/Ivy/IvyPPC/IvyClient.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'CSharp/Ivy') 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 -- cgit v1.1