--- deliantra/server/socket/loop.C 2007/07/01 05:00:20 1.55 +++ deliantra/server/socket/loop.C 2007/07/01 05:47:00 1.56 @@ -226,7 +226,7 @@ else ix.ofs = 0; - int consumed = ol - outputbuffer_len (); + int consumed = outputbuffer_len () - ol; avail -= consumed; rate_avail -= consumed; @@ -236,6 +236,7 @@ if (!ix.ofs) { ixface.pop_back (); + if (ixface.empty ()) break; }