netclientclock: Check return value of g_socket_close()

CID 1348452
This commit is contained in:
Sebastian Dröge 2016-01-15 09:48:32 +01:00
parent 3315f483bc
commit 7b49459f1a

View file

@ -242,7 +242,8 @@ gst_net_client_internal_clock_finalize (GObject * object)
} }
if (self->socket != NULL) { 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); g_object_unref (self->socket);
self->socket = NULL; self->socket = NULL;
} }