Skip to content

Commit 810fda7

Browse files
committed
Cancel timer after cmdstan finishes.
1 parent f072187 commit 810fda7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmdstanpy/model.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,8 +1614,10 @@ def _run_cmdstan(
16141614

16151615
stdout, _ = proc.communicate()
16161616
retcode = proc.returncode
1617-
if timer and retcode == -15:
1618-
retcode = 60
1617+
if timer:
1618+
timer.cancel()
1619+
if retcode == -15:
1620+
retcode = 60
16191621
runset._set_retcode(idx, retcode)
16201622

16211623
if stdout:

0 commit comments

Comments
 (0)