Skip to content

Commit

Permalink
do not close session associated to client
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Mar 1, 2024
1 parent dbf00ab commit 72d735c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/omero/gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2092,8 +2092,14 @@ def _resetOmeroClient(self):
logger.debug(self.ice_config)

if self.c is not None:
self.c.__del__()
self.c = None
try:
if self.c.getSessionId() != self._sessionUuid:
self.c.__del__()
self.c = None
except omero.ClientError: # no session available
self.c.__del__()
self.c = None
pass

if self.host is not None:
if self.port is not None:
Expand Down

0 comments on commit 72d735c

Please sign in to comment.