From 004889f308f9571338ee1a7c8079e84a275e8f93 Mon Sep 17 00:00:00 2001 From: jenz Date: Mon, 24 Apr 2023 23:36:50 +0200 Subject: [PATCH] hopefully preventing connection spam --- season_halloween/scripting/season_halloween.sp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/season_halloween/scripting/season_halloween.sp b/season_halloween/scripting/season_halloween.sp index 3271898d..44348c0c 100644 --- a/season_halloween/scripting/season_halloween.sp +++ b/season_halloween/scripting/season_halloween.sp @@ -215,7 +215,10 @@ public void OnMapStart() //---------------------------------------------------------------------------------------------------- public void OnConfigsExecuted() { - Database.Connect(SQL_OnDatabaseConnect, "season"); + if (!g_hDatabase) + { + Database.Connect(SQL_OnDatabaseConnect, "season"); + } } //----------------------------------------------------------------------------------------------------