summaryrefslogtreecommitdiff
path: root/Ivy/IvyWatcher.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy/IvyWatcher.cs')
-rw-r--r--Ivy/IvyWatcher.cs20
1 files changed, 12 insertions, 8 deletions
diff --git a/Ivy/IvyWatcher.cs b/Ivy/IvyWatcher.cs
index b985ada..cc3fab1 100644
--- a/Ivy/IvyWatcher.cs
+++ b/Ivy/IvyWatcher.cs
@@ -81,9 +81,10 @@ namespace IvyBus
}
}
- /// <summary> the behaviour of each thread watching the UDP socket.
+ /// <summary>
+ /// the behaviour of each thread watching the UDP socket.
/// </summary>
- public void Run()
+ private void Run()
{
Ivy.traceProtocol(Resources.IvyWatcher, "beginning of a watcher Thread");
@@ -172,7 +173,9 @@ namespace IvyBus
Ivy.traceProtocol(Resources.IvyWatcher, "ending stopping an IvyWatcher");
}
}
-
+ /// <summary>
+ /// send the boradcst message on all domains
+ /// </summary>
internal virtual void start()
{
lock (stream)
@@ -197,14 +200,15 @@ namespace IvyBus
if (disposing)
{
// Free other state (managed objects).
+ if (stream != null)
+ {
+ stream.Close();
+ stream = null;
+ }
}
// Free your own state (unmanaged objects).
// Set large fields to null.
- if (stream != null)
- {
- stream.Close();
- stream = null;
- }
+
}
#endregion