Handle instance status updates with port change

If an instance is reassigned its port may change without the status
changing, these updates should not be ignored.
This commit is contained in:
Hornwitser committed 2024-02-06 22:43:04 +01:00
1 parent 7ba14f7433
commit 021af793fc
1 file changed
+4 -1
+4 -1
View File
@@ -178,7 +178,10 @@ export default class HostConnection extends BaseConnection {
// changed. Hosts also send status updates on assignInstance which
// for hacky reason is also used to push config changes and
// restablish status after a connection loss.
if (instance.status === request.status) {
if (
instance.status === request.status
&& instance.gamePort === request.gamePort
) {
return;
}