mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 15:43:13 +09:00
Use -1 as the default lastResponseTime
Entites that didn't have an updatedAt time at the time of creation will default to having one set to 0. Since entities with an updatedAt time greater than lastResponseTime is expected to be returned this means that these entities would not be included when a client does its initial sync subscribing to a resource. Change the default lastResponseTime requested so that these entities are included.
This commit is contained in:
1 parent
5748f834ff
commit
0c4387769e
2 files changed
+6
-6
No files matched your search
@@ -208,7 +208,7 @@ export class SubscriptionController {
|
||||
export class EventSubscriber<T extends Event<T>, V=T> {
|
||||
_callbacks = new Array<EventSubscriberCallback<V>>();
|
||||
lastResponse: Event<T> | null = null;
|
||||
lastResponseTime = 0;
|
||||
lastResponseTime = -1;
|
||||
control?: Link;
|
||||
|
||||
constructor(
|
||||
|
||||
Reference in new issue
Block a user