db.open/close not needed with new query functions
This commit is contained in:
parent
6f26cc0dc5
commit
b9cb3e69e1
1 changed files with 0 additions and 2 deletions
|
|
@ -127,7 +127,6 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
string sql = Path.Combine(SavePath, "tshock.sqlite");
|
string sql = Path.Combine(SavePath, "tshock.sqlite");
|
||||||
DB = new SqliteConnection(string.Format("uri=file://{0},Version=3", sql));
|
DB = new SqliteConnection(string.Format("uri=file://{0},Version=3", sql));
|
||||||
DB.Open();
|
|
||||||
}
|
}
|
||||||
else if (Config.StorageType.ToLower() == "mysql")
|
else if (Config.StorageType.ToLower() == "mysql")
|
||||||
{
|
{
|
||||||
|
|
@ -201,7 +200,6 @@ namespace TShockAPI
|
||||||
|
|
||||||
public override void DeInitialize()
|
public override void DeInitialize()
|
||||||
{
|
{
|
||||||
DB.Close();
|
|
||||||
GameHooks.PostInitialize -= OnPostInit;
|
GameHooks.PostInitialize -= OnPostInit;
|
||||||
GameHooks.Update -= OnUpdate;
|
GameHooks.Update -= OnUpdate;
|
||||||
ServerHooks.Join -= OnJoin;
|
ServerHooks.Join -= OnJoin;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue