Fix seemingly deadlocking loop scenario.
This commit is contained in:
parent
60835022fb
commit
806d8db44c
|
@ -130,7 +130,6 @@ module Telepathy
|
|||
@last_update_id = action.nil? ? @last_update_id : action + 1
|
||||
@update_channel.send get_updates 10
|
||||
when Control
|
||||
@update_channel.send action
|
||||
break
|
||||
end
|
||||
end
|
||||
|
@ -143,6 +142,7 @@ module Telepathy
|
|||
process_updates(item)
|
||||
@poll_channel.send item.last?.try &.update_id
|
||||
when Control
|
||||
@poll_channel.send item
|
||||
break
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user