gateway: Fix close shared memory object on non Win32 platforms

main
remittor 1 month ago
parent 888274dc2a
commit 18c75f4abc

@ -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:

Loading…
Cancel
Save