Author: batosai
Date: 2008-09-12 10:13:54 +0000 (Fri, 12 Sep 2008)
New Revision: 22616
Modified:
trunk/plugins/WoT/src/plugins/WoT/WoT.java
Log:
Removed useless code. Doesn't happen till OutputStreams are closed before
insert.
Modified: trunk/plugins/WoT/src/plugins/WoT/WoT.java
===================================================================
--- trunk/plugins/WoT/src/plugins/WoT/WoT.java 2008-09-12 10:10:03 UTC (rev
22615)
+++ trunk/plugins/WoT/src/plugins/WoT/WoT.java 2008-09-12 10:13:54 UTC (rev
22616)
@@ -128,19 +128,9 @@
}
public void terminate() {
-
- if(inserter == null) {// Can't figure out why
executor.execute() makes it null, but stop screwing the unload process.
- Logger.error(this, "Inserter's thread reference is
null, can't stop it !" );
- }
- else {
- Logger.debug(this, "Calling inserter.stop()");
- inserter.stop();
- }
-
- Logger.debug(this, "Cleanly closing the database");
+ inserter.stop();
db.commit();
db.close();
-
fetcher.stop(); // Do this after cleanly closing the database,
as it sometimes locks
}