mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
netclientclock: Check return value of g_socket_close()
CID 1348452
This commit is contained in:
parent
3315f483bc
commit
7b49459f1a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue