Fix seemingly deadlocking loop scenario.

This commit is contained in:
Danila Fedorin 2018-01-16 16:49:01 -08:00
parent 60835022fb
commit 806d8db44c
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,6 @@ module Telepathy
@last_update_id = action.nil? ? @last_update_id : action + 1 @last_update_id = action.nil? ? @last_update_id : action + 1
@update_channel.send get_updates 10 @update_channel.send get_updates 10
when Control when Control
@update_channel.send action
break break
end end
end end
@ -143,6 +142,7 @@ module Telepathy
process_updates(item) process_updates(item)
@poll_channel.send item.last?.try &.update_id @poll_channel.send item.last?.try &.update_id
when Control when Control
@poll_channel.send item
break break
end end
end end