diff options
author | Eric Wong <e@80x24.org> | 2022-01-11 18:21:04 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-01-21 20:29:57 +0000 |
commit | bf9787ac517fe19af5fd6ba918a66b220fcbc923 (patch) | |
tree | e30cf4a74c599bb8037f41340fc1ed8800d8af4c /lib/dtas/player.rb | |
parent | 88a8d4793473259b392241f1e2d20d39bd96b214 (diff) | |
download | dtas-bf9787ac517fe19af5fd6ba918a66b220fcbc923.tar.gz |
This ought to save some memory for dtas-player and dtas-readahead users with multiple instances of the same track(s) on their track list.
Diffstat (limited to 'lib/dtas/player.rb')
-rw-r--r-- | lib/dtas/player.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dtas/player.rb b/lib/dtas/player.rb index ff7440f..243f0b0 100644 --- a/lib/dtas/player.rb +++ b/lib/dtas/player.rb @@ -208,13 +208,13 @@ class DTAS::Player # :nodoc: command = msg.shift case command when "enq" - enq_handler(io, msg[0]) + enq_handler(io, -msg[0]) when "enq-cmd" - enq_handler(io, { "command" => msg[0]}) + enq_handler(io, { "command" => -msg[0]}) when "pause", "play", "play_pause" play_pause_handler(io, command) when "pwd" - io.emit(Dir.pwd) + io.emit(-Dir.pwd) else m = "dpc_#{command.tr('-', '_')}" __send__(m, io, msg) if respond_to?(m) |