gameServer/hedgewars-server.hs
changeset 1839 5dd4cb7fd7e5
parent 1833 e901ec5644b4
child 1927 e2031906a347
equal deleted inserted replaced
1838:00a5fc50aa43 1839:5dd4cb7fd7e5
    48 	setupLoggers
    48 	setupLoggers
    49 
    49 
    50 	stats <- atomically $ newTMVar (StatisticsInfo 0 0)
    50 	stats <- atomically $ newTMVar (StatisticsInfo 0 0)
    51 	dbQueriesChan <- newChan
    51 	dbQueriesChan <- newChan
    52 	coreChan <- newChan
    52 	coreChan <- newChan
    53 	serverInfo <- getOpts $ newServerInfo stats dbQueriesChan
    53 	serverInfo <- getOpts $ newServerInfo stats coreChan dbQueriesChan
    54 	
    54 	
    55 	bracket
    55 	bracket
    56 		(Network.listenOn $ Network.PortNumber $ listenPort serverInfo)
    56 		(Network.listenOn $ Network.PortNumber $ listenPort serverInfo)
    57 		(sClose)
    57 		(sClose)
    58 		(startServer serverInfo coreChan)
    58 		(startServer serverInfo coreChan)