If the context goes down while a transmission is ongoing, the
SoupServer is kept alive by the response causing a crash if the context
comes up again on the same interface. To prevent this we only use
unowned SoupServers here.
internal abstract class Rygel.HTTPRequest : GLib.Object, Rygel.StateMachine {
public unowned HTTPServer http_server;
private MediaContainer root_container;
- public Soup.Server server;
+ public unowned Soup.Server server;
public Soup.Message msg;
public Cancellable cancellable { get; set; }
using Soup;
internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
- public Soup.Server server { get; private set; }
+ public unowned Soup.Server server { get; private set; }
public Soup.Message msg;
public Cancellable cancellable { get; set; }