This function should be erased when @fabriciocosta pushes his branch.  If
you look, the promise code is inside startMvcpServer
There it waits for the promise to call this.  But, this func is called now
from the in-driver, thats why I made this ugly hack.


2013/4/10 Niv Sardi <notifications@github.com>

> In mosto.js:
>
> > @@ -64,13 +64,17 @@ function mosto(configFile) {
> >      };
> >
> >      mosto.prototype.playPlaylists = function() {
> > -        console.log("mbc-mosto: [INFO] Start playing playlists");
> > -        self.playlists.forEach(function(element, index, array) {
> > -            if (!element.loaded) {
> > -                self.appendClip(element.medias);
> > -                element.loaded = true;
> > -            }
> > -        });
> > +        if (self.server_started) {
>
> that feels wrong,
> all this should be chained as a promise of the server beeing started, or
> wait on that promise.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/inaes-tic/mbc-mosto/pull/39/files#r3740897>
> .
>