diff -r 1090e2141798 -r 2fdc9cc89502 org/sonews/daemon/AbstractDaemon.java --- a/org/sonews/daemon/AbstractDaemon.java Wed Jul 01 10:48:22 2009 +0200 +++ b/org/sonews/daemon/AbstractDaemon.java Wed Jul 22 14:04:05 2009 +0200 @@ -19,7 +19,7 @@ package org.sonews.daemon; import java.sql.SQLException; -import org.sonews.daemon.storage.Database; +import org.sonews.storage.StorageManager; import org.sonews.util.Log; /** @@ -56,21 +56,17 @@ } /** - * Marks this thread to exit soon. Closes the associated Database connection + * Marks this thread to exit soon. Closes the associated JDBCDatabase connection * if available. * @throws java.sql.SQLException */ - void shutdownNow() + public void shutdownNow() throws SQLException { synchronized(this) { this.isRunning = false; - Database db = Database.getInstance(false); - if(db != null) - { - db.shutdown(); - } + StorageManager.disableProvider(); } }