From: Not Zed Date: Sat, 25 Jan 2020 03:10:14 +0000 (+1030) Subject: Revert incorrect change to release() X-Git-Url: https://code.zedzone.au/cvs?a=commitdiff_plain;h=34cb2063a9c8b66ce6efcd86f2b6a1509d072294;p=zcl Revert incorrect change to release() --- 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(); } }