mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-11 16:12:20 +00:00
Remove thread from active list when it has finished.
Former-commit-id: 3b5a36ed001e5eae0dddb1c8f5be354662d1c02d
This commit is contained in:
parent
6d893dc52e
commit
20ee97c53c
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