Fix missing callback of #2400 and ignore missing author on timeslider on client-side

This commit is contained in:
Gared 2014-12-27 22:25:24 +01:00
parent a645aeef5c
commit 9cf19b99fe
2 changed files with 24 additions and 16 deletions

View file

@ -1020,7 +1020,12 @@ function handleClientReady(client, message)
{
authorManager.getAuthor(authorId, function(err, author)
{
if(ERR(err, callback) || !author) return;
if(!author && !err)
{
messageLogger.error("There is no author for authorId:", authorId);
return callback();
}
if(ERR(err, callback)) return;
historicalAuthorData[authorId] = {name: author.name, colorId: author.colorId}; // Filter author attribs (e.g. don't send author's pads to all clients)
callback();
});