File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
hls-graph/src/Development/IDE/Graph/Internal Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -122,17 +122,17 @@ builder db stack keys = do
122
122
return res
123
123
124
124
builderOne :: Database -> Stack -> Key -> AIO (Key , IO Result )
125
- builderOne db@ Database {.. } stack id = UE. mask_ $ do
125
+ builderOne db@ Database {.. } stack id = UE. uninterruptibleMask $ \ restore -> do
126
126
current <- liftIO $ readTVarIO databaseStep
127
- (k, registerWaitResult) <- liftIO $ atomicallyNamed " builder" $ do
127
+ (k, registerWaitResult) <- restore $ liftIO $ atomicallyNamed " builder" $ do
128
128
-- Spawn the id if needed
129
129
status <- SMap. lookup id databaseValues
130
130
val <- case viewDirty current $ maybe (Dirty Nothing ) keyStatus status of
131
131
Dirty s -> do
132
132
let act =
133
133
asyncWithCleanUp
134
- ( refresh db stack id s
135
- `UE.onException` liftIO (atomicallyNamed " builder - onException" (SMap. focus updateDirty id databaseValues))
134
+ ((restore $ refresh db stack id s)
135
+ `UE.onException` UE. uninterruptibleMask_ ( liftIO (atomicallyNamed " builder - onException" (SMap. focus updateDirty id databaseValues) ))
136
136
)
137
137
SMap. focus (updateStatus $ Running current s) id databaseValues
138
138
return act
You can’t perform that action at this time.
0 commit comments