-
Notifications
You must be signed in to change notification settings - Fork 3
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
Connection eventually gets detached from screen #9
Comments
I faced this issue and sort of sorted it by calling |
Is this a race condition with command_offset?
|
Thank you for your comment and helping! Sadly I believe the reproduction described in this issue should not be related to this; it occurs even when no commands are issued and there's only one active coroutine. I think the As a general note: with multiple threads this will also cause issues. At this time it's not something I consider as supported by the library though. |
Using code that continually reconnects and refreshes authorization, eventually the real connection to the lounge session is lost.
Instead a sort of phantom session becomes active, where no events are being sent, but there's no errors from the API.
Calling
refresh_auth
usually fixes this situation, however it should automatically be detected and prevented.The following sample code can be used to observe this:
In my experience it can take a few days or up to a week before this problem occurs, in this time the screen (and thus youtube app) is turned on/off a few times.
The text was updated successfully, but these errors were encountered: