diff --git a/src/eALockMgr.erl b/src/eALockMgr.erl index 97b4c67..9c539a7 100644 --- a/src/eALockMgr.erl +++ b/src/eALockMgr.erl @@ -38,7 +38,7 @@ handle_info({'EXIT', Pid, _Reason}, State) -> [] -> ignore; [KeyIxOrKeyIxs] -> ALockRef = persistent_term:get(?eALockRef), - PidInt = termInt:termInt(PidInt), + PidInt = termInt:termInt(Pid), case is_integer(KeyIxOrKeyIxs) of true -> atomics:compare_exchange(ALockRef, KeyIxOrKeyIxs, PidInt, 0);