From e4381e7daf1dbf8696b082aaa4cd7c146e6b8369 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 12 Jan 2018 22:18:20 -0800 Subject: [PATCH] Only send nil to channel if worker was just spawned. --- src/telepathy/bot.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telepathy/bot.cr b/src/telepathy/bot.cr index 4856cf0..9aaf6c0 100644 --- a/src/telepathy/bot.cr +++ b/src/telepathy/bot.cr @@ -116,8 +116,8 @@ module Telepathy if !@poll_running @poll_running = true spawn_workers + @poll_channel.send nil end - @poll_channel.send nil end def end_poll