Bug 1594323 - Fix IRC capability state handling between reconnects. r=freaktechnik

This commit is contained in:
Patrick Cloke 2019-12-02 12:36:38 +02:00
Родитель bf5d6122e1
Коммит 14c02ff14f
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -1842,7 +1842,6 @@ ircAccount.prototype = {
_availableCAPs: new Set(),
_activeCAPs: new Set(),
_requestedCAPs: new Set(),
_capTimeout: null,
_negotiatedCAPs: false,
_queuedCAPs: [],
addCAP(aCAP) {
@ -2202,9 +2201,11 @@ ircAccount.prototype = {
this._socket.disconnect();
delete this._socket;
this._requestedCAPs.clear();
// Reset cap negotiation.
this._availableCAPs.clear();
this._activeCAPs.clear();
this._requestedCAPs.clear();
this._negotiatedCAPs = false;
this._queuedCAPs.length = 0;
clearTimeout(this._isOnTimer);