Fix race condition

This commit is contained in:
calzoneman 2014-01-08 16:44:31 -06:00
parent 97fd06f7a6
commit 22a6a4617c
1 changed files with 4 additions and 2 deletions

View File

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