diff --git a/python/adios2/stream.py b/python/adios2/stream.py index eb632f19fb..826316d9cd 100644 --- a/python/adios2/stream.py +++ b/python/adios2/stream.py @@ -536,9 +536,10 @@ def close(self): """ self._engine.close() self._engine = None - self._io.flush_all() + if not self._read_mode: + self._io.flush_all() + self._adios.flush_all() self._io = None - self._adios.flush_all() self._adios = None def current_step(self):