Skip to content

Commit e9504c9

Browse files
authored
Merge pull request #34 from edgeimpulse/fix-freeze-without-shm
Don't use timeout without shm
2 parents 3b9b092 + 444ccea commit e9504c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

edge_impulse_linux/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, model_path: str, timeout: int = 30, allow_shm = True):
2424
self._allow_shm = allow_shm
2525
self._input_shm = None
2626
self._freeform_output_shm = []
27-
self._timeout = timeout
27+
self._timeout = timeout if not allow_shm else None
2828

2929
def init(self, debug=False):
3030
if not os.path.exists(self._model_path):

0 commit comments

Comments
 (0)