Moving wait loop to only happen when Flush() succeeds (#1024)
Moving wait loop to only happen when Flush() succeeds (#1024)


microsoft/Azure-Kinect-Sensor-SDK,microsoft/Azure-Kinect-Sensor-SDK,microsoft/Azure-Kinect-Sensor-SDK,microsoft/Azure-Kinect-Sensor-SDK,microsoft/Azure-Kinect-Sensor-SDK,microsoft/Azure-Kinect-Sensor-SDK