* VRFS-3579 - dont try to kick off 2 downloads
This commit is contained in:
parent
0aa2f215b6
commit
49dc6890fc
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue