Author: miguel
Date: 2005-03-30 16:58:16 -0500 (Wed, 30 Mar 2005)
New Revision: 42393

Modified:
   branches/mono-1-1-6/mcs/class/System/System.IO/ChangeLog
   branches/mono-1-1-6/mcs/class/System/System.IO/KeventWatcher.cs
Log:
Another one

Modified: branches/mono-1-1-6/mcs/class/System/System.IO/ChangeLog
===================================================================
--- branches/mono-1-1-6/mcs/class/System/System.IO/ChangeLog    2005-03-30 
21:56:12 UTC (rev 42392)
+++ branches/mono-1-1-6/mcs/class/System/System.IO/ChangeLog    2005-03-30 
21:58:16 UTC (rev 42393)
@@ -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: branches/mono-1-1-6/mcs/class/System/System.IO/KeventWatcher.cs
===================================================================
--- branches/mono-1-1-6/mcs/class/System/System.IO/KeventWatcher.cs     
2005-03-30 21:56:12 UTC (rev 42392)
+++ branches/mono-1-1-6/mcs/class/System/System.IO/KeventWatcher.cs     
2005-03-30 21:58:16 UTC (rev 42393)
@@ -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