changeset 170:0be55d38fe53

Fixed possible race condition.
author Mikhail Kryshen <mikhail@kryshen.net>
date Mon, 01 Dec 2014 21:43:39 +0300
parents 8471a45645ad
children d9bdf08211df
files src/indyvon/async.clj
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/indyvon/async.clj	Mon Dec 01 21:39:22 2014 +0300
+++ b/src/indyvon/async.clj	Mon Dec 01 21:43:39 2014 +0300
@@ -121,8 +121,8 @@
       (draw-scene! (:scene async-view)
                    g
                    (:width async-view)
-                   (:height async-view)))
-    (update async-view)))
+                   (:height async-view))))
+  (update async-view))
 
 (defn- draw-offscreen-async [async-view]
   (.execute ^ThreadPoolExecutor (:executor async-view)