Prevent server crash if author is not set
This commit is contained in:
parent
444bbf4cbc
commit
40c7ee9df9
|
@ -1020,7 +1020,7 @@ function handleClientReady(client, message)
|
|||
{
|
||||
authorManager.getAuthor(authorId, function(err, author)
|
||||
{
|
||||
if(ERR(err, callback)) return;
|
||||
if(ERR(err, callback) || !author) return;
|
||||
historicalAuthorData[authorId] = {name: author.name, colorId: author.colorId}; // Filter author attribs (e.g. don't send author's pads to all clients)
|
||||
callback();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue