-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Gmail reconnects twice after disconnection #1
Comments
Hm, haven't seen this on my end. Is that after getting a |
Yes,
I'm running the bot on my laptop, which I put to sleep at night, so this happens when I wake it up in the morning. |
Can you try sending the bot a |
Also ... has this behavior been happening since the first time you ran the bot? Or did it just start recently? |
|
OK, I think I know what the issue was. (At some point a 2nd mail client was started without stopping the first instance.) I pushed a new |
I'm guessing the sleep cycle causes the mail client to lose its connection to Gmail. Then upon waking up it creates a new connection. Can you send me the console log from when the laptop wakes up in the morning? FWIW ... I run my bot on a free Oracle Cloud VM, so no sleeping/waking interruptions. Might be a more stable solution for you. |
I ran the updated code, put my computer to sleep for an hour so Gmail would disconnect, woke it back up, and the issue is resolved! Gmail reconnected just once and no further duplicate messages. |
Awesome. Thanks for finding the bug. |
Hi, bot is working great, only issue I've experienced is after Gmail gets disconnected, it reconnects twice, resulting in messages sent to Voice being output twice on Matrix. A message sent from Matrix to Voice still gets sent once, so the issue is only one-way.
The text was updated successfully, but these errors were encountered: