Unverified Commit 5323672b authored by youkaichao's avatar youkaichao Committed by GitHub
Browse files

[misc] cleanup one level of error stack when nixl fails to initialize (#35517)


Signed-off-by: default avataryoukaichao <youkaichao@gmail.com>
parent a201ad72
......@@ -2506,6 +2506,9 @@ class NixlConnectorWorker:
def shutdown(self):
"""Shutdown the connector worker."""
if not hasattr(self, "_handshake_initiation_executor"):
# error happens during init, no need to shutdown
return
self._handshake_initiation_executor.shutdown(wait=False)
for handles in self._recving_transfers.values():
for handle in handles:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment