(self)
| 3269 | self.shutdown() |
| 3270 | |
| 3271 | def __del__(self): |
| 3272 | try: |
| 3273 | # Ensure all connections are closed, in case the Session object is deleted by the GC |
| 3274 | self.shutdown() |
| 3275 | except: |
| 3276 | # Ignore all errors. Shutdown errors can be caught by the user |
| 3277 | # when cluster.shutdown() is called explicitly. |
| 3278 | pass |
| 3279 | |
| 3280 | def add_or_renew_pool(self, host, is_host_addition): |
| 3281 | """ |