From f8cf608c27084f6c68bfbb20f940e2fea9b8ade2 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Tue, 16 May 2017 11:58:31 +0200 Subject: [PATCH] wait longer for webcam to write to disk --- screenless/bureau/photography/photography.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenless/bureau/photography/photography.py b/screenless/bureau/photography/photography.py index 3ca8364..32b376a 100644 --- a/screenless/bureau/photography/photography.py +++ b/screenless/bureau/photography/photography.py @@ -99,7 +99,7 @@ class Photography(Bureau): time.sleep(2) killer_cmd = "killall -s SIGINT mjpg_streamer" subprocess.Popen(killer_cmd.split()) - time.sleep(1) + time.sleep(2) # copy last image to the tmpfile filelist = os.listdir("/tmp/webcam")