* guard against undefined SessionRemoveAllPlayTracks

This commit is contained in:
Seth Call 2014-08-31 15:23:42 -05:00
parent e503287400
commit 0132fa38b0
1 changed files with 4 additions and 1 deletions

View File

@ -1464,7 +1464,10 @@
// make sure no previous plays are still going on by accident
context.jamClient.SessionStopPlay();
context.jamClient.SessionRemoveAllPlayTracks();
if(context.jamClient.SessionRemoveAllPlayTracks) {
// upgrade guard
context.jamClient.SessionRemoveAllPlayTracks();
}
};