mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-04 23:02:18 +02:00
Do not try to quit from errored networks
This commit is contained in:
parent
7d24394814
commit
69bb003e45
|
@ -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");
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue