aboutsummaryrefslogtreecommitdiff
path: root/src/client/Server.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-02-22 14:28:28 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-02-22 14:28:28 -0500
commit441775f3e16e56e1516c8fa93d12e4faaae03b38 (patch)
tree01e173cef87fb785b6503bab5f300a7f2b83a49e /src/client/Server.ts
parent9b23c5123abf42c3751938d831556cdb94ad3951 (diff)
Fixed crash hopefully
Diffstat (limited to 'src/client/Server.ts')
-rw-r--r--src/client/Server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Server.ts b/src/client/Server.ts
index 06ac22c61..2d162b93a 100644
--- a/src/client/Server.ts
+++ b/src/client/Server.ts
@@ -34,7 +34,7 @@ export class Server {
}
}));
} else if (cached != FieldWaiting) {
- callback(cached);
+ setTimeout(() => callback(cached as Field), 0);
} else {
reaction(() => {
return this.ClientFieldsCached.get(fieldid);