Skip to content

Commit 45e724e

Browse files
committed
Ensure runs are automatically closed in offline mode
1 parent 9a01166 commit 45e724e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simvue/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def __enter__(self):
164164
def __exit__(self, type, value, traceback):
165165
logger.debug('Automatically closing run %s in status %s', self._name, self._status)
166166

167-
if self._name and self._status == 'running':
167+
if (self._name or self._mode == 'offline') and self._status == 'running':
168168
if self._shutdown_event is not None:
169169
self._shutdown_event.set()
170170
if not type:

0 commit comments

Comments
 (0)