Skip to content

Commit

Permalink
Renew policy before reconnecting. Tag #53.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ascrod committed Feb 16, 2019
1 parent 087f37d commit 483d672
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions xul/content/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2346,19 +2346,19 @@ function my_netdisconnect (e)
client.getConnectionCount() == 0)
window.close();

if (("reconnect" in this) && this.reconnect)
{
this.connect(this.requireSecurity);
delete this.reconnect;
}

// On disconnect, renew the STS policy.
// Renew the STS policy.
if (e.server.isSecure && ("sts" in e.server.caps) && client.prefs["sts.enabled"])
{
var value = client.sts.parseParameters(e.server.capvals["sts"]).duration;
client.sts.setPolicy(e.server.hostname, e.server.port, value);
}

if (("reconnect" in this) && this.reconnect)
{
this.connect(this.requireSecurity);
delete this.reconnect;
}

if (this.deleteWhenDone)
this.dispatch("delete-view");

Expand Down

0 comments on commit 483d672

Please sign in to comment.