gameServer/Actions.hs
branchserver_refactor
changeset 4579 4e61c2a42121
parent 4573 7e3be7d7eeda
child 4585 6e747aef012f
--- a/gameServer/Actions.hs	Mon Jan 10 18:29:43 2011 +0300
+++ b/gameServer/Actions.hs	Mon Jan 10 18:57:44 2011 +0300
@@ -427,8 +427,8 @@
     si <- gets serverInfo
     liftIO $ do
         ci <- addClient rnc client
-        forkIO $ clientRecvLoop (clientSocket client) (coreChan si) ci
-        forkIO $ clientSendLoop (clientSocket client) (sendChan client) ci
+        t <- forkIO $ clientRecvLoop (clientSocket client) (coreChan si) ci
+        forkIO $ clientSendLoop (clientSocket client) t (sendChan client) ci
 
         infoM "Clients" (show ci ++ ": New client. Time: " ++ show (connectTime client))