From 6df0d14a1bddb07d96a03a0ac166beb948ca8a4d Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:57:49 +0000 Subject: Utilisateur : Fcolin Date : 13/11/03 Heure : 16:02 Archivé dans $/EScribe/Ivy Commentaire: (vss 14) --- CSharp/Ivy/IvyPPC/IvyClient.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CSharp/Ivy/IvyPPC') diff --git a/CSharp/Ivy/IvyPPC/IvyClient.cs b/CSharp/Ivy/IvyPPC/IvyClient.cs index dbf8ef1..31ccdd5 100644 --- a/CSharp/Ivy/IvyPPC/IvyClient.cs +++ b/CSharp/Ivy/IvyPPC/IvyClient.cs @@ -265,12 +265,14 @@ namespace IvyBus return ; // Tell Thread to stop. running = false; - in_stream.Close(); + if ( in_stream != null ) + in_stream.Close(); if ( Thread.CurrentThread != clientThread ) { // Wait for Thread to end. clientThread.Join(); } + clientThread = null; } -- cgit v1.1