mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 17:13:10 +00:00
core: disable all background threads other than agent subscriber
This commit is contained in:
3 files changed
+9
-9
No files matched your search
+7
-7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user