From 97bccbc681f018212e0f5c0c60bc5352b0976856 Mon Sep 17 00:00:00 2001 From: "Evgeny @ SimpleX Chat" <259188159+evgeny-simplex@users.noreply.github.com> Date: Fri, 30 Oct 2026 20:03:34 +0000 Subject: [PATCH] smp server: remove do and mask_ from subscribeNewQueue --- src/Simplex/Messaging/Server.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Simplex/Messaging/Server.hs b/src/Simplex/Messaging/Server.hs index 39934c3a2..566a8fe4a 100644 --- a/src/Simplex/Messaging/Server.hs +++ b/src/Simplex/Messaging/Server.hs @@ -1803,7 +1803,7 @@ client getSub = either id id <$> TM.lookupOrInsertIO entId (newSubscription NoSub) (subscriptions clnt) subscribeNewQueue :: RecipientId -> QueueRec -> M s () - subscribeNewQueue rId QueueRec {rcvServiceId} = do + subscribeNewQueue rId QueueRec {rcvServiceId} = case rcvServiceId of Just _ -> do atomically $ modifyTVar' (serviceSubsCount clnt) $ addServiceSubs (1, queueIdHash rId) @@ -1811,7 +1811,7 @@ client Nothing -> do sub <- atomically $ newSubscription NoSub atomically $ TM.insert rId sub $ subscriptions clnt - liftIO . mask_ $ processSub (Just clnt) (CSClient rId Nothing Nothing, clientId) + liftIO $ processSub (Just clnt) (CSClient rId Nothing Nothing, clientId) -- clients that use GET are not added to server subscribers getMessage :: StoreQueue s -> QueueRec -> M s (Transmission BrokerMsg)