logger: fix error handling.

This commit is contained in:
Christopher Jeffrey 2017-01-15 15:18:02 -08:00
parent a53b2c0eef
commit 858081626f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -344,6 +344,8 @@ Logger.prototype.writeConsole = function writeConsole(level, args) {
*/
Logger.prototype.getStream = function getStream() {
var self = this;
if (this.closed)
return;