From 93f4d2b3f126412c057747ecf430a4ffba4f66a3 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 17 Oct 2011 18:02:26 +0300 Subject: [PATCH] Catch SendFailedException when replying back in Connection::Receive() --- src/connection.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/connection.cpp b/src/connection.cpp index 89cb7dd0..0f09753b 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -1102,6 +1102,11 @@ u32 Connection::Receive(u16 &peer_id, u8 *data, u32 datasize) if(m_socket.WaitData(0) == true) continue; } + catch(SendFailedException &e) + { + derr_con<<"Receive(): SendFailedException; peer_id=" + <