Small pause after a connection

This commit is contained in:
QuantumEntangledAndy committed 2023-10-12 06:12:46 +07:00
1 parent 0aa9b347cc
commit f4a0cb3abc
1 file changed
+2
+2
View File
@@ -39,7 +39,9 @@ impl NeoCamThread {
async fn run_camera(&mut self, config: &CameraConfig) -> AnyResult<()> {
let camera = Arc::new(connect_and_login(config).await?);
sleep(Duration::from_secs(2)).await; // Delay a little since some calls will error if camera is waking up
update_camera_time(&camera, &config.name, config.update_time).await?;
sleep(Duration::from_secs(2)).await; // Delay a little since some calls will error if camera is waking up
self.camera_watch.send_replace(Arc::downgrade(&camera));