aboutsummaryrefslogtreecommitdiff
path: root/src/client/Server.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-03-18 09:52:17 -0400
committerbob <bcz@cs.brown.edu>2019-03-18 09:52:17 -0400
commitc63f1d12b379f788b8065416519ee05c78e7f23a (patch)
tree808674520cb5d7434c038789b21e4c5051abed02 /src/client/Server.ts
parent0a37e271eba5bf40d56ee3941f474cb0f10c0396 (diff)
parent5be91465a7d534587a483d5631df705468910839 (diff)
Merge branch 'master' into authentication
Diffstat (limited to 'src/client/Server.ts')
-rw-r--r--src/client/Server.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/Server.ts b/src/client/Server.ts
index 5e42c8285..3fb1ae878 100644
--- a/src/client/Server.ts
+++ b/src/client/Server.ts
@@ -56,6 +56,7 @@ export class Server {
let field = this.ClientFieldsCached.get(id);
if (!field) {
neededFieldIds.push(id);
+ this.ClientFieldsCached.set(id, FieldWaiting);
} else if (field === FieldWaiting) {
waitingFieldIds.push(id);
} else {
@@ -65,7 +66,7 @@ export class Server {
SocketStub.SEND_FIELDS_REQUEST(neededFieldIds, (fields) => {
for (let key in fields) {
let field = fields[key];
- if (!this.ClientFieldsCached.has(field.Id)) {
+ if (!(this.ClientFieldsCached.get(field.Id) instanceof Field)) {
this.ClientFieldsCached.set(field.Id, field)
}
}