Skip to content

Commit

Permalink
Merge pull request #137 from JuliaGizmos/sd/fixfreeze
Browse files Browse the repository at this point in the history
waiting on empty queue will freeze Reactive
  • Loading branch information
JobJob committed May 12, 2017
2 parents 8e9d086 + 1850db2 commit 73e1065
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core.jl
Expand Up @@ -373,7 +373,9 @@ function maybe_restart_queue()
global runner_task
if !istaskdone(runner_task)
stop()
wait(runner_task)
if Base.n_avail(_messages) > 0
wait(runner_task)
end
runner_task = @async run()
end
end
Expand Down

0 comments on commit 73e1065

Please sign in to comment.