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

Prevent reloading timeline after network outage #1196

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

farao
Copy link

@farao farao commented Nov 9, 2024

Since there is already an automatic reconnect mechanism of the websocket in Connection, there is no need to remove the subscription and empty and reload the timeline after a network outage.

Since there is already an automatic reconnect mechanism of the websocket
in Connection, there is no need to remove the subscription and empty and
reload the timeline after a network outage.
}
}

protected void update_stream () {
// debug (get_subscriber_name ()+": UPDATED to "+subscribed.to_string ());

unsubscribe ();
Copy link
Owner

@GeopJr GeopJr Nov 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update_stream, as the name implies, is used to update a stream e.g. when you change account, so unsubscribing from the previous one is necessary

@GeopJr
Copy link
Owner

GeopJr commented Nov 9, 2024

Thanks for the PR!

I added my comments on the issue

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