Commit 3c20e78f authored by Jakub Adam's avatar Jakub Adam Committed by Philip Withnall

udp-bsd: Log g_socket_send_message() errors

Those may have previously been silently ignored.
Reviewed-by: default avatarPhilip Withnall <philip.withnall@collabora.co.uk>
Differential Revision: https://phabricator.freedesktop.org/D1708
parent 7c0fa225
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
#include <fcntl.h> #include <fcntl.h>
#include "udp-bsd.h" #include "udp-bsd.h"
#include "agent-priv.h"
#ifndef G_OS_WIN32 #ifndef G_OS_WIN32
#include <unistd.h> #include <unistd.h>
...@@ -275,8 +276,12 @@ socket_send_message (NiceSocket *sock, const NiceAddress *to, ...@@ -275,8 +276,12 @@ socket_send_message (NiceSocket *sock, const NiceAddress *to,
message->n_buffers, NULL, 0, G_SOCKET_MSG_NONE, NULL, &child_error); message->n_buffers, NULL, 0, G_SOCKET_MSG_NONE, NULL, &child_error);
if (len < 0) { if (len < 0) {
if (g_error_matches (child_error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK)) if (g_error_matches (child_error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK)) {
len = 0; len = 0;
} else {
nice_debug_verbose ("%s: udp-bsd socket %p: error: %s", G_STRFUNC, sock,
child_error->message);
}
g_error_free (child_error); g_error_free (child_error);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment