diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-10-17 18:02:26 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-10-17 18:02:26 +0300 |
commit | 93f4d2b3f126412c057747ecf430a4ffba4f66a3 (patch) | |
tree | 3a644f9d0dfa45be0ae7a2db32f510a62c227a6e /src | |
parent | 558a133044ac638dafb7b0e9452a4d7e435177bf (diff) | |
download | minetest-93f4d2b3f126412c057747ecf430a4ffba4f66a3.tar.gz minetest-93f4d2b3f126412c057747ecf430a4ffba4f66a3.tar.bz2 minetest-93f4d2b3f126412c057747ecf430a4ffba4f66a3.zip |
Catch SendFailedException when replying back in Connection::Receive()
Diffstat (limited to 'src')
-rw-r--r-- | src/connection.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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=" + <<peer_id<<std::endl; + } } // for } |