Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Minor

Christian Bauere1dbc0024212
diff --git a/agent/src/main/java/org/openremote/agent3/protocol/AbstractProtocol.java b/agent/src/main/java/org/openremote/agent3/protocol/AbstractProtocol.java
index a6383ec85..f04d8b292 100644
--- a/agent/src/main/java/org/openremote/agent3/protocol/AbstractProtocol.java
+++ b/agent/src/main/java/org/openremote/agent3/protocol/AbstractProtocol.java
@@ -70,6 +70,7 @@ public abstract class AbstractProtocol implements Protocol {
from(ACTUATOR_TOPIC)
.routeId("Actuator-" + getProtocolName())
.process(exchange -> {
+ // TODO Use read/write lock for link/unlink attributes synchronization and additional optional exclusive lock for single-threaded implementors
synchronized (linkedAttributes) {
// TODO This could be optimized, we must avoid inspecting all messages (maybe tag with protocol name in header?)
if (isAttributeStateForAny(linkedAttributes.keySet()).matches(exchange)) {
diff --git a/manager/client/src/main/java/org/openremote/manager/client/assets/asset/AssetViewImpl.java b/manager/client/src/main/java/org/openremote/manager/client/assets/asset/AssetViewImpl.java
index bb37c5169..f4c1487b2 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/assets/asset/AssetViewImpl.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/assets/asset/AssetViewImpl.java
@@ -183,9 +183,12 @@ public class AssetViewImpl extends Composite implements AssetView {
public void setFormBusy(boolean busy) {
form.setBusy(busy);
attributesForm.setBusy(busy);
- mapWidget.setVisible(!busy);
- if (!busy)
+ if (!busy && locationGroup.isVisible()) {
+ mapWidget.setVisible(true);
mapWidget.resize();
+ } else {
+ mapWidget.setVisible(false);
+ }
editButton.setVisible(!busy);
}