Skip to content

Commit

Permalink
~fix off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
qwwdfsad committed Nov 21, 2022
1 parent a2c1c31 commit 5a02996
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ internal object DebugProbesImpl {
private val callerInfoCache = ConcurrentWeakMap<CoroutineStackFrame, DebugCoroutineInfoImpl>(weakRefQueue = true)

fun install() {
if (installations.incrementAndGet() > 1) return
if (installations.getAndIncrement() > 1) return
startWeakRefCleanerThread()
if (AgentInstallationType.isInstalledStatically) return
dynamicAttach?.invoke(true) // attach
Expand Down

0 comments on commit 5a02996

Please sign in to comment.