Skip to content

Commit

Permalink
Fix roolback
Browse files Browse the repository at this point in the history
  • Loading branch information
annndruha committed Aug 21, 2023
1 parent 9eb4c86 commit e59e767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
def event_loop():
user = None
try:
vk.reconnect()
reconnect_session()
for event in vk.longpoll.listen():
vk.reconnect()
reconnect_session()
if event.type != VkBotEventType.MESSAGE_NEW:
return
user = vk.EventUser(event)
Expand Down

0 comments on commit e59e767

Please sign in to comment.