We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75bfe36 commit 017e805Copy full SHA for 017e805
1 file changed
opa_client/opa.py
@@ -132,7 +132,13 @@ def __init__(
132
self.__session = self.__manager.request
133
134
def __del__(self):
135
- del self.__manager
+ self.close_connection()
136
+
137
+ def close_connection(self):
138
+ """
139
+ Close all currently open connections to the OPA server
140
141
+ self.__manager.clear()
142
143
def check_connection(self):
144
"""
0 commit comments