From 05eed86bd7c88f8d42f6833ccaa2c39fb8b84bc5 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:46:15 +0000 Subject: Utilisateur : Fcolin Date : 4/11/03 Heure : 12:01 Archivé dans $/EScribe/Ivy Commentaire: (vss 10) --- CSharp/Ivy/Ivy/IvyClient.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'CSharp/Ivy') diff --git a/CSharp/Ivy/Ivy/IvyClient.cs b/CSharp/Ivy/Ivy/IvyClient.cs index faddee4..9451265 100644 --- a/CSharp/Ivy/Ivy/IvyClient.cs +++ b/CSharp/Ivy/Ivy/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