Commit d6ce68d3 authored by Brendan Long's avatar Brendan Long

Cleanly shutdown on SIGINT to make it easier to test devices going away.

parent 1810b545
export PKG_CONFIG_PATH
LD_FLAGS += \$(pkg-config --libs gupnp-1.0 gssdp-1.0 gobject-2.0 libxml-2.0 gee-1.0) -g
VALA_FLAGS += --pkg=gupnp-1.0 --pkg=gee-1.0 --pkg=gio-2.0 -X -w -g
VALA_FLAGS += --pkg=gupnp-1.0 --pkg=gee-1.0 --pkg=gio-2.0 --pkg=posix -X -w -g
.gitignore
......
......@@ -49,7 +49,12 @@ class RemoteUIServer {
service.action_invoked["GetCompatibleUIs"].connect(on_get_compatible_uis);
MainLoop loop = new MainLoop();
Unix.signal_add(Posix.SIGINT, () => {
loop.quit();
return true;
});
loop.run();
root_device.set_available(false);
}
void on_get_compatible_uis(GUPnP.ServiceAction action) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment