From af91a075c10cfc7dd6f7e04c55ae2b14dc25d1ea Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 5 Nov 2016 01:04:51 +0000 Subject: readahead: handle queued commands properly We can't do much for readahead when it comes to dtas-player running arbitrary commands. --- bin/dtas-readahead | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/dtas-readahead') diff --git a/bin/dtas-readahead b/bin/dtas-readahead index b4b7311..6034763 100755 --- a/bin/dtas-readahead +++ b/bin/dtas-readahead @@ -133,6 +133,7 @@ def do_ra(fp, pos, w) end def do_open(path) + return unless path # could be a command if path =~ /\.ya?ml\z/ File.open(path) do |fp| buf = fp.read(4) -- cgit v1.2.3-24-ge0c7