gateway: Fix close shared memory object on non Win32 platforms

This commit is contained in:
remittor
2025-01-28 11:12:17 +03:00
parent 888274dc2a
commit 18c75f4abc
+5
View File
@@ -381,6 +381,11 @@ class Gateway():
#===============================================================================
def free_memcfg(self):
if self.memcfg:
if os.name != "nt":
try:
self.memcfg.unlink()
except Exception:
pass
try:
self.memcfg.close() # https://docs.python.org/3/library/multiprocessing.shared_memory.html
except Exception: