Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Feb 21, 2024
1 parent e81d358 commit 0bf8dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Simplex/Messaging/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ clientDisconnected c@Client {clientId, subscriptions, connected, sessionId, endT
M.foldrWithKey (\sub _ -> M.update deleteCurrentClient sub) cs subs
asks clients >>= atomically . TM.delete clientId
tIds <- atomically $ swapTVar endThreads IM.empty
forM_ tIds $ \tId -> liftIO $ deRefWeak tId >>= mapM_ killThread
liftIO $ mapM_ (mapM_ killThread <=< deRefWeak) tIds
where
deleteCurrentClient :: Client -> Maybe Client
deleteCurrentClient c'
Expand Down

0 comments on commit 0bf8dce

Please sign in to comment.