diff options
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs index f44ce83..9d2f9cc 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -150,7 +150,8 @@ initNetwork inner = do useGDB <- asks $ optGDB . teOptions . fst mgdb <- if useGDB then do - gdb <- gdbStart + failedVar <- asks $ teFailed . fst + gdb <- gdbStart $ atomically . writeTVar failedVar . Just . ProcessCrashed liftIO $ modifyMVar_ (netProcesses net) $ return . (gdbProcess gdb:) Just <$> liftIO (newMVar gdb) else return Nothing |