Clear stale users.list from memory to prevent race condition

Version 1.61.0

Bugfix
Finished

Relating to the change here: https://www.directadmin.com/features.php?id=2163 added missing item to clear the live memory data prior to the re-read, prior to the write. Without the clear, the memory would be stale. Example: biguser takes 1 minute to delete. smalluser triggerd 2s after biguser, takes 5s to delete. smaller user is done being deleted first, the users.list only has biguser left. The process deleting biguser still has smalluser in it's list, thus smalluser ended up being re-added to the users.list. There was a re-read of the users.list to catch new accounts, but it didn't clear deleted accounts, thus the full wipe was needed first. ---- T22739 Compile time: May 18 2020 at 16:05:05

Interested to try DirectAdmin? Get a 30-day Free Trial!