mirror of https://github.com/calzoneman/sync.git
Fix race condition
This commit is contained in:
parent
97fd06f7a6
commit
22a6a4617c
|
@ -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) {
|
||||
self.current.media.direct = direct;
|
||||
self.startPlayback(time);
|
||||
if (self.current != null && self.current.media != null) {
|
||||
self.current.media.direct = direct;
|
||||
self.startPlayback(time);
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue