diff options
Diffstat (limited to 'src/net/netcomputer.cpp')
-rw-r--r-- | src/net/netcomputer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/netcomputer.cpp b/src/net/netcomputer.cpp index 5d86f13a..f2d9607b 100644 --- a/src/net/netcomputer.cpp +++ b/src/net/netcomputer.cpp @@ -70,7 +70,11 @@ void NetComputer::send(const MessageOut &msg, bool reliable, if (packet) { - enet_peer_send(mPeer, channel, packet); + if (enet_peer_send(mPeer, channel, packet) < 0) + { + LOG_ERROR("Failure to send packet!"); + enet_packet_destroy(packet); + } } else { |