changeset 3104:7820ce4a96c0

Race condition on saves when no pre-test
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Thu, 18 Jan 2018 17:15:52 +0000
parents d79b9939b19e
children b89e760e091b
files js/core.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);