mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 15:24:52 +09:00
Fix instance details not updating on reassigmnent
Always send the instance details update when an instance is reassigned, not just when it is unassigned. The idea for not sending an update when assigned to a host was that the host would send an update on the status that in turn updates the instance details. However this is not actually the case; when a stopped instance is reassigned its status does not change so the update is ignored.
This commit is contained in:
1 parent
40f5a6ab7c
commit
7ba14f7433
2 files changed
+3
-2
No files matched your search
@@ -6,6 +6,7 @@
|
||||
|
||||
- Fixed an unhandled error in Subspace Storage crashing the host.
|
||||
- Fixed an unhandled rejection in disconnect logic crashing the host.
|
||||
- Fixed instance screen in Web UI not updating when an instance was reassigned.
|
||||
|
||||
|
||||
## Version 2.0.0-alpha.16
|
||||
|
||||
@@ -941,9 +941,9 @@ export default class Controller {
|
||||
);
|
||||
} else {
|
||||
instance.status = "unassigned";
|
||||
instance.updatedAtMs = Date.now();
|
||||
this.instanceDetailsUpdated([instance]);
|
||||
}
|
||||
instance.updatedAtMs = Date.now();
|
||||
this.instanceDetailsUpdated([instance]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user