gameServer/ClientIO.hs
changeset 8454 46b59c529bb1
parent 8371 0551b5c3de9a
child 10460 8dcea9087d75
--- a/gameServer/ClientIO.hs	Sun Jan 27 20:17:30 2013 -0500
+++ b/gameServer/ClientIO.hs	Tue Jan 29 00:03:56 2013 +0400
@@ -37,7 +37,7 @@
             unless (B.null recvBS) $ do
                 let (packets, newrecvBuf) = bs2Packets $ B.append recvBuf recvBS
                 forM_ packets sendPacket
-                receiveWithBufferLoop newrecvBuf
+                receiveWithBufferLoop $ B.copy newrecvBuf
 
         sendPacket packet = writeChan chan $ ClientMessage (ci, packet)