You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're not supposed to call manager.CollectUsersChats
Basically, my app listen to incoming Telegram updates and I want to get the sender and chat information from the update then enqueue it to be processed by queue consumers.
If using manager.CollectUsersChats is not the right way, what would you suggest?
wiz0u
changed the title
Collection was modified; enumeration operation may not execute.
CollectUsersChats: error Collection was modified; enumeration operation may not execute.
Jul 27, 2024
Version: 4.1.2-dev.7
I'm having an issue when using
UpdateManager.CollectUsersChats()
Exception keeps thrown after running the app (like 30 minutes or 45 later)
Collection was modified; enumeration operation may not execute.
Current code:
Even when using _lock and thread safety masques, i still get the error at
manager.CollectUsersChats(users, chats);
The text was updated successfully, but these errors were encountered: