Remove garbage collector stuff
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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!`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
@@ -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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user