From b9cb3e69e13b0d588e45c86560c0f8bfc93d58b8 Mon Sep 17 00:00:00 2001 From: high Date: Mon, 1 Aug 2011 19:34:09 -0400 Subject: [PATCH] db.open/close not needed with new query functions --- TShockAPI/TShock.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index c880685e..4be71218 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -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;