Skip to content
Snippets Groups Projects
Commit dd7bb631 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

finalize -> self.finalize

parent 1301e850
No related branches found
No related tags found
No related merge requests found
...@@ -329,13 +329,14 @@ class client : ...@@ -329,13 +329,14 @@ class client :
self.setNumber('IsPyMetamodel',value=1,visible=0) self.setNumber('IsPyMetamodel',value=1,visible=0)
if self.action == "initialize": exit(0) if self.action == "initialize": exit(0)
def finalize(self) : #code aster python interpreter does not call the destructor at exit, it is necessary to call finalize() epxlicitely def finalize(self):
# code aster python interpreter does not call the destructor at exit, it is
# necessary to call finalize() epxlicitely
if self.socket : if self.socket :
self._wait_on_subclients() self._wait_on_subclients()
self._send(self._GMSH_STOP, 'Goodbye!') self._send(self._GMSH_STOP, 'Goodbye!')
self.socket.close() self.socket.close()
self.socket = None self.socket = None
def __del__(self):
def __del__(self) : self.finalize()
finalize()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment