aboutsummaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.cpp')
-rw-r--r--src/connection.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index 0f09753bd..623994c4c 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -1104,8 +1104,6 @@ u32 Connection::Receive(u16 &peer_id, u8 *data, u32 datasize)
}
catch(SendFailedException &e)
{
- derr_con<<"Receive(): SendFailedException; peer_id="
- <<peer_id<<std::endl;
}
} // for
}
@@ -1195,7 +1193,12 @@ void Connection::SendAsPacket(u16 peer_id, u8 channelnum,
void Connection::RawSend(const BufferedPacket &packet)
{
- m_socket.Send(packet.address, *packet.data, packet.data.getSize());
+ try{
+ m_socket.Send(packet.address, *packet.data, packet.data.getSize());
+ } catch(SendFailedException &e){
+ derr_con<<"Connection::RawSend(): SendFailedException: "
+ <<packet.address.serializeString()<<std::endl;
+ }
}
void Connection::RunTimeouts(float dtime)