Author: gnorton
Date: 2005-03-30 13:11:49 -0500 (Wed, 30 Mar 2005)
New Revision: 42379

Modified:
   trunk/mcs/class/System/System.IO/ChangeLog
   trunk/mcs/class/System/System.IO/KeventWatcher.cs
Log:
2005-03-30  Geoff Norton  <[EMAIL PROTECTED]>

        * KeventWatcher.cs: Fix a file handle leak on raised events.




Modified: trunk/mcs/class/System/System.IO/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.IO/ChangeLog  2005-03-30 15:51:34 UTC (rev 
42378)
+++ trunk/mcs/class/System/System.IO/ChangeLog  2005-03-30 18:11:49 UTC (rev 
42379)
@@ -1,3 +1,7 @@
+2005-03-30  Geoff Norton  <[EMAIL PROTECTED]>
+
+       * KeventWatcher.cs: Fix a file handle leak on raised events.
+
 2005-02-10  Lluis Sanchez Gual  <[EMAIL PROTECTED]>
 
        * DefaultWatcher.cs: Fix nullref exception when the object is disposed

Modified: trunk/mcs/class/System/System.IO/KeventWatcher.cs
===================================================================
--- trunk/mcs/class/System/System.IO/KeventWatcher.cs   2005-03-30 15:51:34 UTC 
(rev 42378)
+++ trunk/mcs/class/System/System.IO/KeventWatcher.cs   2005-03-30 18:11:49 UTC 
(rev 42379)
@@ -227,7 +227,8 @@
                                if (haveEvents > 0) {
                                        // Restart monitoring
                                        KeventData data = (KeventData) requests 
[ev.ident];
-                                       StartMonitoringDirectory(data);
+                                       StopMonitoringDirectory (data);
+                                       StartMonitoringDirectory (data);
                                        ProcessEvent (ev);
                                } else {
                                        System.Threading.Thread.Sleep (500);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to