MISC: Don't include temporary scripts into Recently Killed (#1045)

This commit is contained in:
TheAimMan 2024-01-31 19:43:48 -05:00 committed by GitHub
parent 011d5e8fd6
commit 330a32e1d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -93,5 +93,7 @@ function removeWorkerScript(workerScript: WorkerScript): void {
server.updateRamUsed(roundToTwo(server.ramUsed - rs.ramUsage * rs.threads));
workerScripts.delete(workerScript.pid);
AddRecentScript(workerScript);
if (rs.temporary === false) {
AddRecentScript(workerScript);
}
}