From 77fe0df4553941916c431b25160f3be6dc3e8e13 Mon Sep 17 00:00:00 2001 From: Sam Alws Date: Thu, 27 Jun 2024 14:50:01 -0400 Subject: [PATCH] Fix MVar issue --- lib/Echidna/UI.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Echidna/UI.hs b/lib/Echidna/UI.hs index 000d87527..8e12e90e4 100644 --- a/lib/Echidna/UI.hs +++ b/lib/Echidna/UI.hs @@ -99,7 +99,7 @@ ui vm world dict initialCorpus cliSelectedContract cs = do Interactive -> do -- Channel to push events to update UI uiChannel <- liftIO $ newBChan 1000 - let forwardEvent = writeBChan uiChannel . EventReceived + let forwardEvent = void . writeBChanNonBlocking uiChannel . EventReceived uiEventsForwarderStopVar <- spawnListener forwardEvent ticker <- liftIO . forkIO . forever $ do