mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-14 09:32:22 +00:00
Remove thread from active list when it has finished.
This commit is contained in:
parent
85e4a59a7c
commit
176447e389
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ main = do
|
|||
forever $ do
|
||||
msg <- receiveData conn :: IO T.Text
|
||||
stopWorker conn thread
|
||||
putMVar thread =<< forkIO (generateResponse conn msg)
|
||||
putMVar thread =<< forkIO (generateResponse conn msg >> tryTakeMVar thread >> return ())
|
||||
where
|
||||
opts = defaultConnectionOptions
|
||||
{ connectionCompressionOptions = PermessageDeflateCompression defaultPermessageDeflate }
|
||||
|
|
|
|||
Loading…
Reference in a new issue