Fix race condition

This commit is contained in:
calzoneman 2014-01-08 16:44:31 -06:00
parent 97fd06f7a6
commit 22a6a4617c

View file

@ -352,8 +352,10 @@ Playlist.prototype.startPlayback = function (time) {
!self.current.media.direct &&
Server.getServer().cfg["vimeo-workaround"]) {
VimeoIsADoucheCopter(self.current.media.id, function (direct) {
if (self.current != null && self.current.media != null) {
self.current.media.direct = direct;
self.startPlayback(time);
}
});
return;
}