Skip to content

Commit

Permalink
Add the poll-follower-for-channel fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola 'tekNico' Larosa authored and takikawa committed Aug 16, 2017
1 parent 0c23646 commit 31e625e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/apps/config/leader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -680,9 +680,8 @@ function Leader:send_messages_to_followers()
for _,follower in ipairs(self.followers) do
if not follower.channel then
local name = '/'..tostring(follower.pid)..'/config-follower-channel'
-- local success, channel = pcall(channel.open, name)
--if success then follower.channel = channel end
follower.channel = channel.open(name)
local success, channel = pcall(channel.open, name)
if success then follower.channel = channel end
end
local channel = follower.channel
if channel then
Expand Down

0 comments on commit 31e625e

Please sign in to comment.