* found one escape hatch issue when coming in from account page for a JamTrack session, and removed some extra logging

This commit is contained in:
Seth Call 2015-07-21 08:40:07 -05:00
parent 4345d898f7
commit 1cd05ff7b4
2 changed files with 7 additions and 6 deletions

View File

@ -971,7 +971,7 @@ NotificationActions = @NotificationActions
leaveSession: () ->
if @joinDeferred?.state() == 'resolved'
if !@joinDeferred? || @joinDeferred?.state() == 'resolved'
deferred = new $.Deferred()
@recordingModel.stopRecordingIfNeeded()
@ -1042,6 +1042,7 @@ NotificationActions = @NotificationActions
@controlsLockedForJamTrackRecording = false
@openBackingTrack = null
@downloadingJamTrack = false
@sessionUtils.setAutoOpenJamTrack(null)
JamTrackActions.close()
NotificationActions.sessionEnded()

View File

@ -135,11 +135,11 @@
}
if(type == 'left') {
logger.debug("adding left lights")
//logger.debug("adding left lights")
found.leftLights = lights;
}
else {
logger.debug("adding right lights");
//logger.debug("adding right lights");
found.rightLights = lights;
}
@ -154,7 +154,7 @@
return
}
else {
logger.debug("unregistering " + fqId + ", " + registrations.length)
//logger.debug("unregistering " + fqId + ", " + registrations.length)
}
var origLength = registrations.length;
@ -163,13 +163,13 @@
if(isMatch) {
// found a registration that matches
logger.debug("removing matching ptr", element.ptr)
//logger.debug("removing matching ptr", element.ptr)
element.ptrCount--;
// keep the registration if any ptr's still left
var keepRegistration = element.ptrCount > 0;
if(!keepRegistration) {
logger.debug("getting rid of the registration; no more ptrs");
//logger.debug("getting rid of the registration; no more ptrs");
}
return keepRegistration;
}