mirror of https://github.com/calzoneman/sync.git
Fix null reference bug
This commit is contained in:
parent
84a07030d0
commit
59dd733219
|
@ -987,6 +987,10 @@ PlaylistModule.prototype.startPlayback = function (time) {
|
||||||
* Its purpose is to allow modification of playback data before
|
* Its purpose is to allow modification of playback data before
|
||||||
* users are sent a changeMedia
|
* users are sent a changeMedia
|
||||||
*/
|
*/
|
||||||
|
if (!self.current || !self.current.media) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
self.sendChangeMedia(self.channel.users);
|
self.sendChangeMedia(self.channel.users);
|
||||||
self.channel.notifyModules("onMediaChange", [self.current.media]);
|
self.channel.notifyModules("onMediaChange", [self.current.media]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue