core: disable all background threads other than agent subscriber

This commit is contained in:
Evgeny Poberezkin committed 2024-12-14 15:28:23 +00:00
1 parent 4d82afe602
commit d6c578c240
3 files changed
+9 -9

No files matched your search

+7 -7
View File
@@ -543,13 +543,13 @@ startChatController mainApp enableSndFiles = do
then Just <$> async (subscribeUsers False users)
else pure Nothing
atomically . writeTVar s $ Just (a1, a2)
if mainApp
then do
startXFTP xftpStartWorkers
void $ forkIO $ startFilesToReceive users
startCleanupManager
void $ forkIO $ startExpireCIs users
else when enableSndFiles $ startXFTP xftpStartSndWorkers
-- if mainApp
-- then do
-- startXFTP xftpStartWorkers
-- void $ forkIO $ startFilesToReceive users
-- startCleanupManager
-- void $ forkIO $ startExpireCIs users
-- else when enableSndFiles $ startXFTP xftpStartSndWorkers
pure a1
startXFTP startWorkers = do
tmp <- readTVarIO =<< asks tempDirectory