Update of /var/cvs/src/org/mmbase/module/builders
In directory james.mmbase.org:/tmp/cvs-serv17231/src/org/mmbase/module/builders

Modified Files:
      Tag: MMBase-1_8
        MMEvents.java 
Log Message:
MMB-1401 Serialization can corrupt MMBase database

Shutdown MMEvents probe and builder


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/module/builders
See also: http://www.mmbase.org/jira/browse/MMB-1401


Index: MMEvents.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/module/builders/MMEvents.java,v
retrieving revision 1.20.2.1
retrieving revision 1.20.2.2
diff -u -b -r1.20.2.1 -r1.20.2.2
--- MMEvents.java       3 Aug 2007 18:11:22 -0000       1.20.2.1
+++ MMEvents.java       12 Apr 2008 10:43:05 -0000      1.20.2.2
@@ -21,7 +21,7 @@
  * @javadoc
  * @application Tools
  * @author Daniel Ockeloen
- * @version $Id: MMEvents.java,v 1.20.2.1 2007/08/03 18:11:22 michiel Exp $
+ * @version $Id: MMEvents.java,v 1.20.2.2 2008/04/12 10:43:05 nklasens Exp $
  */
 public class MMEvents extends MMObjectBuilder {
     private static final Logger log = 
Logging.getLoggerInstance(MMEvents.class);
@@ -53,6 +53,13 @@
         return true;
     }
 
+    public void shutdown() {
+        if (enableNotify && probe != null) {
+            probe.stop();
+            probe = null;
+        }
+        super.shutdown();
+    }
 
     public String getGUIIndicator(MMObjectNode node) {
         int tmp=node.getIntValue("start");
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to