From 385563d1d99fda2735c78884ab135c8b77bc651a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Sep 2013 08:33:05 +0000 Subject: player: s/echo/wall/ for broadcasting to all watchers "wall" is analogous to the wall(1) command, so we shall use that instead of echo. --- lib/dtas/player/client_handler.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/dtas/player') diff --git a/lib/dtas/player/client_handler.rb b/lib/dtas/player/client_handler.rb index 9697f39..6070851 100644 --- a/lib/dtas/player/client_handler.rb +++ b/lib/dtas/player/client_handler.rb @@ -317,7 +317,7 @@ module DTAS::Player::ClientHandler # :nodoc: def skip_handler(io, msg) __current_drop - echo("skip") + wall("skip") io.emit("OK") end @@ -334,13 +334,13 @@ module DTAS::Player::ClientHandler # :nodoc: def do_pause return if @paused - echo("pause") + wall("pause") @paused = true __current_requeue end def do_play - # no echo, next_source will echo on new track + # no wall, next_source will wall on new track @paused = false return if @current next_source(_next) @@ -489,7 +489,7 @@ module DTAS::Player::ClientHandler # :nodoc: rescue => e return io.emit("ERR chdir: #{e.message}") end - # echo(%W(cd msg[0])) # should we broadcast this? + # wall(%W(cd msg[0])) # should we broadcast this? io.emit("OK") end -- cgit v1.2.3-24-ge0c7