Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't close session on transfer call #717

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Don't close session on transfer call #717

merged 1 commit into from
Oct 9, 2024

Conversation

vocode-petern
Copy link
Collaborator

Summary

The async with ... as session will close the session at the end of the block. Because we use a singleton to handle sessions, this causes premature closing of the sessions for existing consumers. This change updates the async with to only close the response handler instead of the session so we can preserve the persistent session

@ajar98 ajar98 merged commit fb8e079 into main Oct 9, 2024
4 checks passed
@vocode-petern vocode-petern deleted the fix/session-handling branch October 9, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants