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 &&
|
!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) {
|
||||||
self.current.media.direct = direct;
|
if (self.current != null && self.current.media != null) {
|
||||||
self.startPlayback(time);
|
self.current.media.direct = direct;
|
||||||
|
self.startPlayback(time);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue