lib/puggernaut/server/channel.rb in puggernaut-0.1.2 vs lib/puggernaut/server/channel.rb in puggernaut-0.1.3

- old
+ new

@@ -59,10 +59,13 @@ messages[channel_name].collect { |message| "#{channel_name}|#{message.join('|')}" }.join("\n") end end - channel.push push.compact.join("\n") + push = push.compact + unless push.empty? + channel.push push.join("\n") + end end end end end end \ No newline at end of file