From: Perttu Ahola Date: Mon, 4 Jun 2012 19:43:33 +0000 (+0300) Subject: Remove misdesigned exception from ReliablePacketBuffer X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=ed772da0cce100be856fb1c3bbce949e333543fb;p=zefram%2Fminetest%2Fminetest_engine.git Remove misdesigned exception from ReliablePacketBuffer --- diff --git a/src/connection.cpp b/src/connection.cpp index 127cabdc..5bf47f13 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -353,9 +353,11 @@ SharedBuffer IncomingSplitBuffer::insert(BufferedPacket &p, bool reliable) <<" != sp->reliable="<reliable <chunks.find(chunk_num) != NULL) - throw AlreadyExistsException("Chunk already in buffer"); + return SharedBuffer(); // Cut chunk data out of packet u32 chunkdatasize = p.data.getSize() - headersize;