mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 12:45:53 +12:00
Fix N00BS
This commit is contained in:
parent
0c299729dd
commit
b3df338715
15 changed files with 71 additions and 81 deletions
|
@ -43,8 +43,12 @@ namespace HISP.Server
|
|||
|
||||
public static void OnShutdown()
|
||||
{
|
||||
MySqlConnection.ClearAllPools();
|
||||
SqliteConnection.ClearAllPools();
|
||||
|
||||
if(!ConfigReader.SqlLite)
|
||||
MySqlConnection.ClearAllPools();
|
||||
else
|
||||
SqliteConnection.ClearAllPools();
|
||||
|
||||
}
|
||||
|
||||
public static bool TryExecuteSqlQuery(string query)
|
||||
|
@ -134,7 +138,6 @@ namespace HISP.Server
|
|||
|
||||
if (ConfigReader.SqlLite)
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
DbCommand sqlCommand = db.CreateCommand();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue