Trigger the SensorStop method (hopefully)

ui-window
Nicolas FRANCO 1 year ago
parent 28a15ef2bd
commit ec49044cb3

@ -72,6 +72,12 @@ namespace KinectConnection
{
this.StatusText = this.kinectSensor.IsAvailable ? "Kinect Available" : "Kinect Not Available";
this.Status = this.kinectSensor.IsAvailable;
// if sensor is unplugged => trigger the stop method
if (!this.kinectSensor.IsAvailable)
{
this.StopSensor();
}
}
}
}

Loading…
Cancel
Save