diff --git a/libs/gst/net/gstnetclientclock.c b/libs/gst/net/gstnetclientclock.c index e9777ba469..eaae6e4d6e 100644 --- a/libs/gst/net/gstnetclientclock.c +++ b/libs/gst/net/gstnetclientclock.c @@ -242,7 +242,8 @@ gst_net_client_internal_clock_finalize (GObject * object) } if (self->socket != NULL) { - g_socket_close (self->socket, NULL); + if (!g_socket_close (self->socket, NULL)) + GST_ERROR_OBJECT (self, "Failed to close socket"); g_object_unref (self->socket); self->socket = NULL; }