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

@@ -230,7 +230,7 @@ function onResourceStop(event, resource) {
kickAllClients();
saveServerDataToDatabase();
disconnectFromDatabase(persistentDatabaseConnection, true);
collectAllGarbage();
//collectAllGarbage();
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);
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();
}
// ===========================================================================

View File

@@ -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();
}
// ===========================================================================