From ed772da0cce100be856fb1c3bbce949e333543fb Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 4 Jun 2012 22:43:33 +0300 Subject: [PATCH] Remove misdesigned exception from ReliablePacketBuffer --- src/connection.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.30.2