Compare commits

...

2 Commits

Author SHA1 Message Date
Evgeny Poberezkin 2556e6418e Merge branch 'master' into ep/disable-background 2024-12-14 16:12:16 +00:00
Evgeny Poberezkin d6c578c240 core: disable all background threads other than agent subscriber 2024-12-14 15:28:23 +00:00
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ constraints: zip +disable-bzip2 +disable-zstd
source-repository-package
type: git
location: https://github.com/simplex-chat/simplexmq.git
tag: 0a827307d666de819d5cef17f70a78be5cd0e410
tag: 8647c24a9555d4232b1cb21fed3a7c2518aa7b13
source-repository-package
type: git
+1 -1
View File
@@ -1,5 +1,5 @@
{
"https://github.com/simplex-chat/simplexmq.git"."0a827307d666de819d5cef17f70a78be5cd0e410" = "09z0y6w1c51szd9r90fl259inn76yahfbb164mawd34sr41ccp7g";
"https://github.com/simplex-chat/simplexmq.git"."8647c24a9555d4232b1cb21fed3a7c2518aa7b13" = "1pmblkvmj5n6qa8ri8axd9sw7fbpmq7fipaf1klbhb9ghb89lqmf";
"https://github.com/simplex-chat/hs-socks.git"."a30cc7a79a08d8108316094f8f2f82a0c5e1ac51" = "0yasvnr7g91k76mjkamvzab2kvlb1g5pspjyjn2fr6v83swjhj38";
"https://github.com/simplex-chat/direct-sqlcipher.git"."f814ee68b16a9447fbb467ccc8f29bdd3546bfd9" = "1ql13f4kfwkbaq7nygkxgw84213i0zm7c1a8hwvramayxl38dq5d";
"https://github.com/simplex-chat/sqlcipher-simple.git"."a46bd361a19376c5211f1058908fc0ae6bf42446" = "1z0r78d8f0812kxbgsm735qf6xx8lvaz27k1a0b4a2m0sshpd5gl";
+7 -7
View File
@@ -542,13 +542,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