* VRFS-3579 - dont try to kick off 2 downloads

This commit is contained in:
Seth Call 2015-09-23 14:39:34 -05:00
parent 0aa2f215b6
commit 49dc6890fc
1 changed files with 3 additions and 1 deletions

View File

@ -177,7 +177,9 @@ JamTrackActions = @JamTrackActions
, null, true)
when 'unknown'
if @jamTrack.activeMixdown.client_state != 'downloading'
# we need to check if @keyCheckTimeout exists; because if it does, we don't want to download while keying.
# 'unknown' is tricky here because the file probably is actually on disk, but the bridge API can say unknown until you've tried to key at least once
if @jamTrack.activeMixdown.client_state != 'downloading' && !@keyCheckTimeout?
@jamTrack.activeMixdown.client_state = 'downloading'
logger.debug("JamTrackStore: initiating download of mixdown")
context.jamClient.JamTrackDownload(@jamTrack.id, @jamTrack.activeMixdown.id, context.JK.currentUserId,