Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
Fix infinite loop in 'select' and 'search' commands if there are no t…
Browse files Browse the repository at this point in the history
…racks
  • Loading branch information
n10v committed Nov 14, 2015
1 parent a447d4c commit 76a35ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/nehm/tracks_view_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ def initialize
def execute
setup_environment

tracks = []
old_offset = -1
old_offset = @offset

@queue = []
@track_manager = TrackManager.new(@options)

tracks = get_tracks
UI.term 'There are no tracks yet' if tracks.nil?

loop do
# If offset changed, update list of tracks
unless old_offset == @offset
Expand Down

0 comments on commit 76a35ae

Please sign in to comment.