From 34cb2063a9c8b66ce6efcd86f2b6a1509d072294 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Sat, 25 Jan 2020 13:40:14 +1030 Subject: [PATCH] Revert incorrect change to release() --- src/notzed.zcl/classes/api/Native.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/notzed.zcl/classes/api/Native.java b/src/notzed.zcl/classes/api/Native.java index 5518b26..364d262 100644 --- a/src/notzed.zcl/classes/api/Native.java +++ b/src/notzed.zcl/classes/api/Native.java @@ -737,15 +737,13 @@ public class Native { WeakReference ref; synchronized (map) { - //ref = map.remove(p); - ref = map.get(p); + ref = map.remove(p); } if (ref != null) { if (dolog) log().log(Level.DEBUG, () -> String.format(" force $%016x %s", Memory.toLong(p), getClass().getName())); - ref.clear(); ref.enqueue(); } } -- 2.39.5