about summary refs log tree commit homepage
path: root/bin/dtas-readahead
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dtas-readahead')
-rwxr-xr-xbin/dtas-readahead4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/dtas-readahead b/bin/dtas-readahead
index 68186dc..6a8edf7 100755
--- a/bin/dtas-readahead
+++ b/bin/dtas-readahead
@@ -159,7 +159,9 @@ begin
   cur = YAML.load(c.req('current'))
   while @todo_ra > 0 && fp.nil?
     if current = cur['current']
-      track = current['infile'].freeze
+      track = current['infile']
+      break unless track.kind_of?(String)
+      track.freeze
       fp = work[track] ||= do_open(track)
       cur_pid = current['pid']
       if fp