Only send nil to channel if worker was just spawned.

This commit is contained in:
Danila Fedorin 2018-01-12 22:18:20 -08:00
parent d020c0c9bf
commit e4381e7daf

View File

@ -116,9 +116,9 @@ module Telepathy
if !@poll_running if !@poll_running
@poll_running = true @poll_running = true
spawn_workers spawn_workers
end
@poll_channel.send nil @poll_channel.send nil
end end
end
def end_poll def end_poll
if @poll_running if @poll_running