gameServer/OfficialServer/extdbinterface.hs
changeset 9399 1767c92eff37
parent 8924 13ac59499066
child 9401 2af7bea32e5e
equal deleted inserted replaced
9397:7b7ee65f82ad 9399:1767c92eff37
    44                 hFlush stdout
    44                 hFlush stdout
    45 
    45 
    46         SendStats clients rooms ->
    46         SendStats clients rooms ->
    47                 run dbConn dbQueryStats [SqlInt32 $ fromIntegral clients, SqlInt32 $ fromIntegral rooms] >> return ()
    47                 run dbConn dbQueryStats [SqlInt32 $ fromIntegral clients, SqlInt32 $ fromIntegral rooms] >> return ()
    48 
    48 
       
    49         StoreAchievements -> return ()
       
    50 
    49 
    51 
    50 dbConnectionLoop mySQLConnectionInfo =
    52 dbConnectionLoop mySQLConnectionInfo =
    51     Control.Exception.handle (\(e :: IOException) -> hPutStrLn stderr $ show e) $ handleSqlError $
    53     Control.Exception.handle (\(e :: IOException) -> hPutStrLn stderr $ show e) $ handleSqlError $
    52         bracket
    54         bracket
    53             (connectMySQL mySQLConnectionInfo)
    55             (connectMySQL mySQLConnectionInfo)