Skip to content

Commit 27a7b0a

Browse files
authored
Merge pull request #4 from luuukske/main
fixed attribution error at close
2 parents 4c4f074 + 71c7737 commit 27a7b0a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scscontroller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ def __init__(self):
328328

329329
def close(self):
330330
self._shm_buff.close()
331-
self._shm_fd.close()
331+
if platform.system() == "Linux":
332+
self._shm_fd.close()
332333

333334
def __enter__(self):
334335
return self

0 commit comments

Comments
 (0)