Do not try to quit from errored networks

This commit is contained in:
Pavel Djundik 2016-04-03 12:03:09 +03:00 committed by Maxime Poulin
parent 7d24394814
commit 69bb003e45

View File

@ -339,7 +339,9 @@ Client.prototype.quit = function() {
}
}
this.networks.forEach(function(network) {
network.irc.quit("Page closed");
if (network.irc) {
network.irc.quit("Page closed");
}
});
};