Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/zzqbranch'
Browse files Browse the repository at this point in the history
  • Loading branch information
wenhuiuy committed Mar 5, 2024
2 parents c2b2ae5 + ec0dbfc commit e37b547
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ansys/dyna/core/pre/dynasolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ def save_file(self):
def quit(self):
"""Delete remote instance."""

if self.pim_client is not None:
self.pim_client.close()
if self.remote_instance is not None:
self.remote_instance.delete()
if self.pim_client is not None:
self.pim_client.close()
return
4 changes: 2 additions & 2 deletions src/ansys/dyna/core/solver/dynasolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,10 @@ def quit(self):
command and continues running.
"""
self.logger.debug("quit")
if self.pim_client is not None:
self.pim_client.close()
if self.remote_instance is not None:
self.remote_instance.delete()
if self.pim_client is not None:
self.pim_client.close()
request = dynasolver_pb2.QuitServer()
# ALWAYS returns ACK, so don't bother checking
self.stub.quit_server(request)
Expand Down

0 comments on commit e37b547

Please sign in to comment.