convert TMVars that are never left empty into TVars
This is probably more efficient, and it avoids mistakenly leaving them empty.
This commit is contained in:
parent
b025500352
commit
166d70db77
6 changed files with 46 additions and 62 deletions
|
@ -154,7 +154,7 @@ firstRun o = do
|
|||
- threadstate. -}
|
||||
let st = error "annex state not available"
|
||||
{- Get a DaemonStatus without running in the Annex monad. -}
|
||||
dstatus <- atomically . newTMVar =<< newDaemonStatus
|
||||
dstatus <- atomically . newTVar =<< newDaemonStatus
|
||||
d <- newAssistantData st dstatus
|
||||
urlrenderer <- newUrlRenderer
|
||||
v <- newEmptyMVar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue