mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
change variable name
This commit is contained in:
parent
7de4a3d284
commit
e7b3cda215
@ -54,10 +54,10 @@ export class InterruptiveSleepManager {
|
||||
if (!this.interruptiveSleep.has(key)) {
|
||||
this.interruptiveSleep.set(key, new InterruptiveSleep(this.stepSizeMilliseconds))
|
||||
}
|
||||
const cond = this.interruptiveSleep.get(key)
|
||||
if (!cond) {
|
||||
const interruptiveSleep = this.interruptiveSleep.get(key)
|
||||
if (!interruptiveSleep) {
|
||||
throw new LogError('map entry not exist after setting it')
|
||||
}
|
||||
return cond.sleep(ms)
|
||||
return interruptiveSleep.sleep(ms)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user