From 16441ae7a5085a3339db24e093784d5b55f752e2 Mon Sep 17 00:00:00 2001 From: jenz Date: Sun, 18 Jun 2023 23:29:45 +0200 Subject: [PATCH] less times where refreshing connection, hopefully no handle leaks --- discord_verificiation/scripting/unloze_player_time.sp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/discord_verificiation/scripting/unloze_player_time.sp b/discord_verificiation/scripting/unloze_player_time.sp index 50918c5e..6c8c603a 100644 --- a/discord_verificiation/scripting/unloze_player_time.sp +++ b/discord_verificiation/scripting/unloze_player_time.sp @@ -31,7 +31,6 @@ public Action time_query_activity(Handle timer, any data) { if (!g_hDatabase) { - Database.Connect(SQL_OnDatabaseConnect, "unloze_playtimestats"); return Plugin_Continue; } char sServer[64]; @@ -108,7 +107,6 @@ public Action log_average_hour_count(Handle timer, any data) int avg_hour = GetAveragePlayerActiveTimeServer(); if (!g_hDatabase) { - Database.Connect(SQL_OnDatabaseConnect, "unloze_playtimestats"); return Plugin_Handled; } char sQuery[512]; @@ -201,7 +199,6 @@ public void OnClientPostAdminCheck(int client) return; if (!g_hDatabase) { - Database.Connect(SQL_OnDatabaseConnect, "unloze_playtimestats"); return; } insert_client(client); @@ -398,7 +395,6 @@ public Action Command_Time(int client, int args) { if (!g_hDatabase) { - Database.Connect(SQL_OnDatabaseConnect, "unloze_playtimestats"); return Plugin_Handled; } char sQuery[512];