fix for device enabler

This commit is contained in:
Kazik Pogoda
2019-08-16 09:38:01 +02:00
parent 614d3a653b
commit 3c1a4530fb

View File

@@ -179,6 +179,7 @@ private class KinectsV1Manager(val depthCameraInitializationDelay: Long) : Kinec
set(value) {
if (atomicEnabled.get() == value) {
logger.warn { "Current state requested - doing nothing, Kinect1 device: $num, enabled=$value" }
return
}
if (!inProgress.getAndSet(true)) {
if (value) {