mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-27 22:34:51 +00:00
core, mobile: file error statuses, cancel sent file (#2193)
This commit is contained in:
+5
-2
@@ -343,11 +343,14 @@ xftpServerConfig =
|
||||
}
|
||||
|
||||
withXFTPServer :: IO () -> IO ()
|
||||
withXFTPServer =
|
||||
withXFTPServer = withXFTPServer' xftpServerConfig
|
||||
|
||||
withXFTPServer' :: XFTPServerConfig -> IO () -> IO ()
|
||||
withXFTPServer' cfg =
|
||||
serverBracket
|
||||
( \started -> do
|
||||
createDirectoryIfMissing False xftpServerFiles
|
||||
runXFTPServerBlocking started xftpServerConfig
|
||||
runXFTPServerBlocking started cfg
|
||||
)
|
||||
|
||||
serverBracket :: (TMVar Bool -> IO ()) -> IO () -> IO ()
|
||||
|
||||
Reference in New Issue
Block a user