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 diff
     1.1 --- a/src/indyvon/async.clj	Mon Dec 01 21:39:22 2014 +0300
     1.2 +++ b/src/indyvon/async.clj	Mon Dec 01 21:43:39 2014 +0300
     1.3 @@ -121,8 +121,8 @@
     1.4        (draw-scene! (:scene async-view)
     1.5                     g
     1.6                     (:width async-view)
     1.7 -                   (:height async-view)))
     1.8 -    (update async-view)))
     1.9 +                   (:height async-view))))
    1.10 +  (update async-view))
    1.11  
    1.12  (defn- draw-offscreen-async [async-view]
    1.13    (.execute ^ThreadPoolExecutor (:executor async-view)