chiark / gitweb /
wdt: drag off: synch before chk
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 29 Jan 2021 19:36:11 +0000 (19:36 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 29 Jan 2021 23:36:53 +0000 (23:36 +0000)
Otherwise we can see the client's uncorrected view of things.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
wdriver/wdt-simple.rs

index 15a72a72eb58b5afe6d78737d9477ed09aa5fed6..e43a9c8d833b331ae12e9e706c6e5eed1c546f64 100644 (file)
@@ -112,8 +112,8 @@ impl Ctx {
         .perform()
         .always_context("drag off")?;
 
-      chk(&w, exp_end)?;
       w.synch()?;
+      chk(&w, exp_end)?;
 
       exp_end
     };