From 3c9d0c18a19de1f1ec1c4e77f6b89fdf84d39605 Mon Sep 17 00:00:00 2001 From: fcolin Date: Fri, 10 Oct 2008 15:45:54 +0000 Subject: Ajout de commentaire sur les menbres public --- Ivy/IvyUDPStream.cs | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'Ivy/IvyUDPStream.cs') diff --git a/Ivy/IvyUDPStream.cs b/Ivy/IvyUDPStream.cs index 986a550..0e64381 100644 --- a/Ivy/IvyUDPStream.cs +++ b/Ivy/IvyUDPStream.cs @@ -77,19 +77,20 @@ namespace IvyBus if (disposing) { // Free other state (managed objects). + if (out_stream != null) + { + out_stream.Close(); + out_stream = null; + } + if (in_stream != null) + { + in_stream.Close(); + in_stream = null; + } } // Free your own state (unmanaged objects). // Set large fields to null. - if (out_stream != null) - { - out_stream.Close(); - out_stream = null; - } - if (in_stream != null) - { - in_stream.Close(); - in_stream = null; - } + } #endregion } -- cgit v1.1