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

Handling homeserver restarts #5

Open
z3ntu opened this issue Sep 29, 2019 · 2 comments
Open

Handling homeserver restarts #5

z3ntu opened this issue Sep 29, 2019 · 2 comments

Comments

@z3ntu
Copy link
Contributor

z3ntu commented Sep 29, 2019

Hi, it looks like applications using mautrix-go quietly continue running even after a homerserver restart but after the restart don't get any new messages anymore.

Is there something in my application I need to do to handle this?

I currently basically use

syncer := client.Syncer.(*mautrix.DefaultSyncer)
syncer.OnEventType(...) { ... }
client.Sync()
@rakshazi
Copy link

Is this still valid?

@z3ntu
Copy link
Contributor Author

z3ntu commented Aug 20, 2021

Not sure. I haven't restarted my bot in a while and got no complaints of it not working. But I also don't know how often the homeserver gets restarted so I can't say anything for certain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants