g_socket_accept() is only called once for a server socket. So
keeping the socket open ist just confusing possible clients.
https://bugzilla.gnome.org/show_bug.cgi?id=731566
g_socket_accept (src->server_socket, src->cancellable, &err);
if (!src->client_socket)
goto accept_error;
+ GST_DEBUG_OBJECT (src, "closing server socket");
+
+ if (!g_socket_close (src->server_socket, &err)) {
+ GST_ERROR_OBJECT (src, "Failed to close socket: %s", err->message);
+ g_clear_error (&err);
+ }
/* now read from the socket. */
}