Fix a few common causes of error logs (incl. better ffprobe error messages)

This commit is contained in:
Calvin Montgomery 2017-12-10 16:39:06 -08:00
parent c4cc22dd05
commit fbee6d2ab7
4 changed files with 55 additions and 12 deletions

View file

@ -64,7 +64,7 @@ class ReferenceCounter {
for (var caller in this.references) {
this.refCount += this.references[caller];
}
} else if (this.channel.users.length > 0) {
} else if (this.channel.users && this.channel.users.length > 0) {
LOGGER.error("ReferenceCounter::refCount reached 0 but still had " +
this.channel.users.length + " active users" +
` (channel: ${this.channelName})`);