From: Perttu Ahola Date: Mon, 17 Oct 2011 15:02:26 +0000 (+0300) Subject: Catch SendFailedException when replying back in Connection::Receive() X-Git-Tag: 0.3.dev-20111021~27 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=93f4d2b3f126412c057747ecf430a4ffba4f66a3;p=oweals%2Fminetest.git Catch SendFailedException when replying back in Connection::Receive() --- diff --git a/src/connection.cpp b/src/connection.cpp index 89cb7dd0b..0f09753bd 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=" + <