Skip to content
Open
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
2 changes: 1 addition & 1 deletion customerio/client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ def _build_session(self):
# closes the session if we're not using connection pooling.
def _close(self):
# if we're not using pooling; clean up the resources.
if (not self.use_connection_pooling):
if (not self.use_connection_pooling and self._current_session is not None):
self._current_session.close()
self._current_session = None