# HG changeset patch # User Nicholas Jillings # Date 1516295752 0 # Node ID 7820ce4a96c0a36d6c18a27000b2c9736c73f2c4 # Parent d79b9939b19eca7f0df84c57cf287d9ee449fad7 Race condition on saves when no pre-test diff -r d79b9939b19e -r 7820ce4a96c0 js/core.js --- a/js/core.js Thu Jan 18 17:06:52 2018 +0000 +++ b/js/core.js Thu Jan 18 17:15:52 2018 +0000 @@ -3935,8 +3935,8 @@ }, "update": { "value": function () { - if (this.key === null || requestChains === undefined) { - throw ("Cannot save as key == null"); + if (requestChains === undefined) { + throw ("Initiate key exchange first"); } this.parent.root.setAttribute("state", "update"); requestChains = requestChains.then(postUpdate);