Skip to content

Commit a7fb3d6

Browse files
committed
GH-1618: Fix ResourcesChange Event in SimpleInstanceEnabler
1 parent dceda02 commit a7fb3d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leshan-client-core/src/main/java/org/eclipse/leshan/client/resource/SimpleInstanceEnabler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public WriteResponse write(LwM2mServer server, boolean replace, int resourceid,
125125
});
126126

127127
newValue.getInstances().forEach((newInstanceId, newInstance) -> {
128-
LwM2mResourceInstance previousInstance = newValue.getInstances().get(newInstanceId);
128+
LwM2mResourceInstance previousInstance = previousValue.getInstances().get(newInstanceId);
129129
if (previousInstance == null) {
130130
// addition
131131
changedResources.add(getResourceInstancePath(resourceid, newInstanceId));

0 commit comments

Comments
 (0)