diff --git a/engine/nsmservercontrol.py b/engine/nsmservercontrol.py index 9657fcb..599a959 100644 --- a/engine/nsmservercontrol.py +++ b/engine/nsmservercontrol.py @@ -42,6 +42,7 @@ from datetime import datetime from sys import exit as sysexit from time import sleep from ctypes import c_ulong +from functools import lru_cache #Our files from .comparedirectories import md5_dir @@ -1429,6 +1430,7 @@ class NsmServerControl(object): return hashAddress % 65521 + @lru_cache(maxsize=128) def _get_lock_file_name(self, session_name:str, full_absolute_session_path:str) -> pathlib.Path: """This is a translation from the nsm/nsmd.c function of the same name. We use it to find the lock file on our system.