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:
Hornwitser committed 2024-02-06 22:43:04 +01:00
1 parent 40f5a6ab7c
commit 7ba14f7433
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -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
+2 -2
View File
@@ -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]);
}
/**