Skip to content

Commit

Permalink
refactor: moving call later.
Browse files Browse the repository at this point in the history
  • Loading branch information
German Martinez Ayuso committed Sep 23, 2024
1 parent e86de49 commit 03d3204
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ansys/mapdl/core/mapdl_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,6 @@ def exit(self, save=False, force=False):
elif self._exited:
# Already exited.
return
else:
mapdl_path = self.directory

if save:
self._log.debug("Saving MAPDL database")
Expand All @@ -1095,6 +1093,7 @@ def exit(self, save=False, force=False):
self._log.debug("Exiting MAPDL")

if self._local:
mapdl_path = self.directory
self._cache_pids() # Recache processes

if os.name == "nt":
Expand Down

0 comments on commit 03d3204

Please sign in to comment.