We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 724625c commit 2bde066Copy full SHA for 2bde066
1 file changed
src/hiero_sdk_python/client/client.py
@@ -200,12 +200,18 @@ def close(self) -> None:
200
Closes any open gRPC channels and frees resources.
201
Call this when you are done using the Client to ensure a clean shutdown.
202
"""
203
+ # Close mirror channel
204
if self.mirror_channel is not None:
205
self.mirror_channel.close()
206
self.mirror_channel = None
207
208
self.mirror_stub = None
209
210
+ # Fix: Close all consensus node channels
211
+ if self.network and self.network.nodes:
212
+ for node in self.network.nodes:
213
+ node._close()
214
+
215
def set_transport_security(self, enabled: bool) -> Client:
216
217
Enable or disable TLS for consensus node connections.
0 commit comments