Skip to content
Browse files

Pushing on all channels every time (oops)

  • Loading branch information...
1 parent 59dc851 commit ef655fe5418efcf46d9e83d42ccc6a7758d4d6b0 @winton committed Jan 21, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/puggernaut/server/channel.rb
View
5 lib/puggernaut/server/channel.rb
@@ -61,7 +61,10 @@ def say(messages)
}.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

0 comments on commit ef655fe

Please sign in to comment.
Something went wrong with that request. Please try again.