Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Pushing on all channels every time (oops)

  • Loading branch information...
commit ef655fe5418efcf46d9e83d42ccc6a7758d4d6b0 1 parent 59dc851
Winton Welsh authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 lib/puggernaut/server/channel.rb
5 lib/puggernaut/server/channel.rb
@@ -61,7 +61,10 @@ def say(messages)
61 61 }.join("\n")
62 62 end
63 63 end
64   - channel.push push.compact.join("\n")
  64 + push = push.compact
  65 + unless push.empty?
  66 + channel.push push.join("\n")
  67 + end
65 68 end
66 69 end
67 70 end

0 comments on commit ef655fe

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