Skip to content

Commit 7ba6d06

Browse files
committed
Fix missing start time
1 parent f4a9e21 commit 7ba6d06

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

simvue/run.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,9 @@ def _start(self, reconnect: bool = False) -> bool:
465465

466466
self._start_time = time.time()
467467

468-
if self._sv_obj and self._sv_obj.status != "running":
469-
self._sv_obj.status = self._status
468+
if self._sv_obj:
469+
if self._sv_obj.status != "running":
470+
self._sv_obj.status = self._status
470471
self._sv_obj.started = self._start_time
471472
self._sv_obj.commit()
472473

0 commit comments

Comments
 (0)