From 454b075276206ab911e2eb8eeb5402fada66c448 Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Thu, 12 Dec 2024 17:12:18 +0100 Subject: [PATCH] refactor: finishing routine for v24.1 or older --- src/ansys/mapdl/core/mapdl_grpc.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ansys/mapdl/core/mapdl_grpc.py b/src/ansys/mapdl/core/mapdl_grpc.py index 38cc36481c..a0b2cecc66 100644 --- a/src/ansys/mapdl/core/mapdl_grpc.py +++ b/src/ansys/mapdl/core/mapdl_grpc.py @@ -1236,15 +1236,12 @@ def _exit_mapdl_server(self): if self._version is None or self._version < 24.1: self._ctrl("EXIT") - elif self._version >= 25.1: + elif self._version >= 24.1: # We can't use the non-cached version because of recursion error. # self.run("/EXIT,NOSAVE,,,,,SERVER") self.finish() self._ctrl("EXIT") - elif self._version >= 24.1: - self._ctrl("EXIT") - return def _kill_process(self):