diff --git a/scripts/client/event.js b/scripts/client/event.js index 4313e47e..dc3645a8 100644 --- a/scripts/client/event.js +++ b/scripts/client/event.js @@ -64,7 +64,6 @@ function onResourceStart(event, resource) { if (resource == thisResource) { logToConsole(LOG_DEBUG | LOG_WARN, `[AGRP.Event] onResourceStart called - Sending signal to server`); - garbageCollectorInterval = setInterval(collectAllGarbage, 1000 * 60); localPlayerMoneyInterval = setInterval(updateLocalPlayerMoney, 1000 * 5); sendResourceStartedSignalToServer(); } diff --git a/scripts/server/event.js b/scripts/server/event.js index 71045029..0a772cd5 100644 --- a/scripts/server/event.js +++ b/scripts/server/event.js @@ -230,7 +230,7 @@ function onResourceStop(event, resource) { kickAllClients(); saveServerDataToDatabase(); disconnectFromDatabase(persistentDatabaseConnection, true); - collectAllGarbage(); + //collectAllGarbage(); messageDiscordEventChannel(`⛔ Server is shutting down!`); } diff --git a/scripts/server/job.js b/scripts/server/job.js index 65c6537e..c707ac79 100644 --- a/scripts/server/job.js +++ b/scripts/server/job.js @@ -3645,7 +3645,7 @@ function deleteJobRouteLocationCommand(command, params, client) { getJobData(getJobIdFromDatabaseId(tempJob)).routes[tempJobRoute].locations.splice(tempIndex, 1); setAllJobDataIndexes(); - collectAllGarbage(); + //collectAllGarbage(); } // =========================================================================== @@ -3683,7 +3683,7 @@ function deleteJobRouteCommand(command, params, client) { getServerData().jobs[jobId].routes.splice(jobRoute, 1); setAllJobDataIndexes(); - collectAllGarbage(); + //collectAllGarbage(); } // =========================================================================== @@ -3711,7 +3711,7 @@ function deleteJobUniformCommand(command, params, client) { getJobData(jobId).uniforms.splice(uniformIndex, 1); setAllJobDataIndexes(); - collectAllGarbage(); + //collectAllGarbage(); } // =========================================================================== diff --git a/scripts/server/timers.js b/scripts/server/timers.js index d05efb36..04462e92 100644 --- a/scripts/server/timers.js +++ b/scripts/server/timers.js @@ -113,9 +113,6 @@ function oneMinuteTimerFunction() { logToConsole(LOG_DEBUG, `[AGRP.Event] Updating all player name tags`); updateAllPlayerNameTags(); } - - logToConsole(LOG_DEBUG, `[AGRP.Event] Collecting all garbage`); - collectAllGarbage(); } // ===========================================================================