Remove garbage collector stuff

This commit is contained in:
Vortrex
2022-12-21 08:19:05 -06:00
parent e055bbb128
commit 9e5e410582
4 changed files with 4 additions and 8 deletions

View File

@@ -64,7 +64,6 @@ function onResourceStart(event, resource) {
if (resource == thisResource) { if (resource == thisResource) {
logToConsole(LOG_DEBUG | LOG_WARN, `[AGRP.Event] onResourceStart called - Sending signal to server`); logToConsole(LOG_DEBUG | LOG_WARN, `[AGRP.Event] onResourceStart called - Sending signal to server`);
garbageCollectorInterval = setInterval(collectAllGarbage, 1000 * 60);
localPlayerMoneyInterval = setInterval(updateLocalPlayerMoney, 1000 * 5); localPlayerMoneyInterval = setInterval(updateLocalPlayerMoney, 1000 * 5);
sendResourceStartedSignalToServer(); sendResourceStartedSignalToServer();
} }

View File

@@ -230,7 +230,7 @@ function onResourceStop(event, resource) {
kickAllClients(); kickAllClients();
saveServerDataToDatabase(); saveServerDataToDatabase();
disconnectFromDatabase(persistentDatabaseConnection, true); disconnectFromDatabase(persistentDatabaseConnection, true);
collectAllGarbage(); //collectAllGarbage();
messageDiscordEventChannel(`⛔ Server is shutting down!`); messageDiscordEventChannel(`⛔ Server is shutting down!`);
} }

View File

@@ -3645,7 +3645,7 @@ function deleteJobRouteLocationCommand(command, params, client) {
getJobData(getJobIdFromDatabaseId(tempJob)).routes[tempJobRoute].locations.splice(tempIndex, 1); getJobData(getJobIdFromDatabaseId(tempJob)).routes[tempJobRoute].locations.splice(tempIndex, 1);
setAllJobDataIndexes(); setAllJobDataIndexes();
collectAllGarbage(); //collectAllGarbage();
} }
// =========================================================================== // ===========================================================================
@@ -3683,7 +3683,7 @@ function deleteJobRouteCommand(command, params, client) {
getServerData().jobs[jobId].routes.splice(jobRoute, 1); getServerData().jobs[jobId].routes.splice(jobRoute, 1);
setAllJobDataIndexes(); setAllJobDataIndexes();
collectAllGarbage(); //collectAllGarbage();
} }
// =========================================================================== // ===========================================================================
@@ -3711,7 +3711,7 @@ function deleteJobUniformCommand(command, params, client) {
getJobData(jobId).uniforms.splice(uniformIndex, 1); getJobData(jobId).uniforms.splice(uniformIndex, 1);
setAllJobDataIndexes(); setAllJobDataIndexes();
collectAllGarbage(); //collectAllGarbage();
} }
// =========================================================================== // ===========================================================================

View File

@@ -113,9 +113,6 @@ function oneMinuteTimerFunction() {
logToConsole(LOG_DEBUG, `[AGRP.Event] Updating all player name tags`); logToConsole(LOG_DEBUG, `[AGRP.Event] Updating all player name tags`);
updateAllPlayerNameTags(); updateAllPlayerNameTags();
} }
logToConsole(LOG_DEBUG, `[AGRP.Event] Collecting all garbage`);
collectAllGarbage();
} }
// =========================================================================== // ===========================================================================