db.open/close not needed with new query functions

This commit is contained in:
high 2011-08-01 19:34:09 -04:00
parent 6f26cc0dc5
commit b9cb3e69e1

View file

@ -127,7 +127,6 @@ namespace TShockAPI
{
string sql = Path.Combine(SavePath, "tshock.sqlite");
DB = new SqliteConnection(string.Format("uri=file://{0},Version=3", sql));
DB.Open();
}
else if (Config.StorageType.ToLower() == "mysql")
{
@ -201,7 +200,6 @@ namespace TShockAPI
public override void DeInitialize()
{
DB.Close();
GameHooks.PostInitialize -= OnPostInit;
GameHooks.Update -= OnUpdate;
ServerHooks.Join -= OnJoin;