Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/viam/rpc/dial.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ def close(self):
if not self._closed:
try:
self.channel.close()
except RuntimeError as e:
# ignore event loop is closed errors - robot is getting shutdown
if len(e.args) > 0 and e.args[0] == "Event loop is closed":
LOGGER.debug("ViamChannel might not have shut down cleanly - Event loop was closed")
return
raise
finally:
self.release()
self._closed = True
Expand Down